Applying the Sweep Modifier to a Line

  1. In the Perspective viewport, create a line.
  2. Apply the Sweep modifier to the line.

    The line takes on the shape of an angled extrusion.

  3. Open the Built-In Section list and choose a different section.

    The line now has the new section swept along its length.