Revit 2026 API
Alignment |
Returns all alignment station labels placed on the given alignment in the given view.
Namespace: Autodesk.Revit.DB.Infrastructure
Assembly: Autodesk.CivilAlignments.DBApplication (in Autodesk.CivilAlignments.DBApplication.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static ICollection<AlignmentStationLabel> GetAlignmentStationLabels( Alignment alignment, ElementId viewId )
Public Shared Function GetAlignmentStationLabels ( alignment As Alignment, viewId As ElementId ) As ICollection(Of AlignmentStationLabel)
public: static ICollection<AlignmentStationLabel^>^ GetAlignmentStationLabels( Alignment^ alignment, ElementId^ viewId )
static member GetAlignmentStationLabels : alignment : Alignment * viewId : ElementId -> ICollection<AlignmentStationLabel>
Parameters
- alignment Alignment
- The alignment for which the labels are returned.
- viewId ElementId
- The ElementId of the view for which the labels are returned.
Return Value
ICollectionAlignmentStationLabel
The resulting collection may contain both "individual" labels (created via Create(Alignment, View, AlignmentStationLabelOptions))
and "labels in set" (created via CreateSet(Alignment, View, AlignmentStationLabelSetOptions)).
These labels have categories respectively OST_Alignments and OST_AlignmentStationLabelSets.
See Also