AlignmentStationLabel Class

Represents an object which provides access to a specialized Revit annotation element used for labeling Alignment stations.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.InfrastructureAlignmentStationLabel

Namespace: Autodesk.Revit.DB.Infrastructure
Assembly: Autodesk.CivilAlignments.DBApplication (in Autodesk.CivilAlignments.DBApplication.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class AlignmentStationLabel

The AlignmentStationLabel type exposes the following members.

Properties
 NameDescription
Public propertyAlignmentId The ElementId of the Alignment on which the SpotDimension is placed.
Public propertyElement The underlying SpotDimension element.
Public propertyStation The alignment station at which the SpotDimension is placed.
Top
Methods
 NameDescription
Public methodStatic memberCreate Creates an AlignmentStationLabel object along with its underlying SpotDimension element. Returns null if element creation fails.
Public methodStatic memberCreateRecommendedTypeForSet Creates an element type recommended for alignment label sets and returns its ElementId.
Public methodStatic memberCreateSet Creates a collection of AlignmentStationLabel objects along with their underlying SpotDimension elements.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGet Returns an AlignmentStationLabel object for the given element.
Public methodStatic memberGetAlignmentStationLabels(Alignment) Returns all alignment station labels placed on the given alignment.
Public methodStatic memberGetAlignmentStationLabels(Alignment, ElementId) Returns all alignment station labels placed on the given alignment in the given view.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsRecommendedTypeForSet Checks if the element type is recommended for alignment labels in sets.
Public methodIsValid Checks if this object is a valid alignment station label.
Public methodStatic memberIsValid(Element) Checks if the element is a valid alignment station label.
Public methodStatic memberIsValidType Checks if the type is a valid alignment station label type.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
The element is a SpotDimension. The element's category is OST_AlignmentStationLabels or, if in a set of labels, OST_AlignmentStationLabelSets. The element's type is a SpotDimensionType with DimensionStyleType equal to AlignmentStationLabel. The element's Origin is a point on the tessellated representation of an alignment. To get the precise point on the alignment's curve, use GetPointAtStation(Double) with input obtained from Station.
See Also