Create Method


Creates an AlignmentStationLabel object along with its underlying SpotDimension element. Returns null if element creation fails.

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

Syntax

C#
public static AlignmentStationLabel Create(
	Alignment alignment,
	View view,
	AlignmentStationLabelOptions options
)
Visual Basic
Public Shared Function Create ( _
	alignment As Alignment, _
	view As View, _
	options As AlignmentStationLabelOptions _
) As AlignmentStationLabel
Visual C++
public:
static AlignmentStationLabel^ Create(
	Alignment^ alignment, 
	View^ view, 
	AlignmentStationLabelOptions^ options
)

Parameters

alignment
Type: Autodesk.Revit.DB.InfrastructureAlignment
The alignment on which the alignment station label is placed.
view
Type: Autodesk.Revit.DBView
The view for which the alignment station label is created.
options
Type: Autodesk.Revit.DB.InfrastructureAlignmentStationLabelOptions
The alignment station options of the label to be created.

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 →