Alignment Class

Alignment Class

Represents an object which provides access to an underlying Revit alignment element.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.InfrastructureAlignment

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 class Alignment
Public Class Alignment
public ref class Alignment
type Alignment = class end

The Alignment type exposes the following members.

Properties
 NameDescription
Public propertyDescription The Description of this alignment.
Public propertyDisplayedEndStation Specifies the station at which the alignment's display ends, in Revit internal model units (standard Imperial feet).
Public propertyDisplayedStartStation Specifies the station at which the alignment's display starts, in Revit internal model units (standard Imperial feet).
Public propertyElement The underlying DirectShape element.
Public propertyEndStation Specifies the station at which the alignment's geometric definition ends, in Revit internal model units (standard Imperial feet).
Public propertyGUID The GUID of this alignment.
Public propertyName The Name of this alignment.
Public propertyStartStation Specifies the station at which the alignment's geometric definition starts, in Revit internal model units (standard Imperial feet).
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGet(Element) Returns an Alignment object given a Revit alignment element.
Public methodStatic memberGet(Document, Guid) Returns an Alignment in the document given its GUID.
Public methodStatic memberGetAlignments(Document) Returns all alignments in the given document.
Public methodStatic memberGetAlignments(View) Returns all alignments visible in the given view.
Public methodGetClosestPoint Calculates the point on the alignment's geometry which is closest to the given model point.
Public methodGetClosestStation Calculates the alignment station closest to the given model point.
Public methodGetDisplayedHorizontalCurveEndpoints Returns the endpoints of the alignment's horizontal curves. Only the points between DisplayedStartStation and DisplayedEndStation are returned.
Public methodGetDistance Calculates the relative distance along the alignment between two stations based on their alignment distances according to Revit Internal Origin Coordinate Base. The distance may be positive or negative depending on the relative positions of the input stations on the alignment.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHCurveNormalAtStation Calculate 2d (X and Y components of returned vector) horizontal normal at given station.
Public methodGetHCurveTangentAtStation Calculate 2d (X and Y components of returned vector) horizontal tangent at given station.
Public methodGetPointAtStation Calculates the model point for a given alignment station.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetVCurveNormalAtStation Calculate 2d (X and Y components of returned vector) vertical normal at given station.
Public methodGetVCurveTangentAtStation Calculate 2d (X and Y components of returned vector) vertical tangent at given station.
Public methodIsValid Checks if this object is a valid alignment.
Public methodStatic memberIsValid(Element) Checks if the element is a valid alignment.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
The element is a DirectShape. The element's category is OST_Alignments.
See Also