Get Method (Element)


Returns an Alignment object given a Revit alignment element.

Namespace: Autodesk.Revit.DB.Infrastructure
Assembly: Autodesk.CivilAlignments.DBApplication (in Autodesk.CivilAlignments.DBApplication.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2021.1

Syntax

C#
public static Alignment Get(
	Element alignmentElement
)
Visual Basic
Public Shared Function Get ( _
	alignmentElement As Element _
) As Alignment
Visual C++
public:
static Alignment^ Get(
	Element^ alignmentElement
)

Parameters

alignmentElement
Type: Autodesk.Revit.DB Element
The alignment element.

Return Value

An Alignment for this element, or null if none found.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →