LineStyle Property


Curve Element Line Style Property

The line style of this curve element.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public Element LineStyle { get; set; }

Property Value

Element
Exceptions
Exception Condition
ArgumentNullException Thrown when argument is .
InvalidOperationException Thrown when regeneration failed. -- or -- Thrown when fail to get line style.
Remarks
The return of this property will be a [!:Autodesk::Revit::DB::GraphicsStyle] element. These graphics styles should be associated to subcategories of the BuiltInCategory OST_Lines.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →