In the Perspective viewport, create a line.
Apply the Sweep modifier to the line.
The line takes on the shape of an angled extrusion.
Open the Built-In Section list and choose a different section.
The line now has the new section swept along its length.