Can profile families be invoked to generate models through lines?

Can profile families be invoked to generate models through lines?
Like this component, which is a linear extrusion, can I pick lines in Rhino to generate it, similar to walls and railings?


What Revit Element are you trying to create/modify?