Gets the LinePattern associated to an element or from a built-in line pattern.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static LinePattern GetLinePattern(
Document document,
ElementId elementId
)
Parameters
- document Document
-
The document in which to retrieve the LinePattern.
- elementId ElementId
-
The ElementId of the LinePatternElement or the built-in line pattern id.
Return Value
LinePattern
A copy of LinePattern object.
null if the ElementId doesn't represent a line pattern element
or built-in line pattern.
null for Solid.
Exceptions
See Also
Reference