C

Alignment

Description:
Represents an object which provides access to an underlying Revit alignment element.
Remarks:
The element is a DirectShape. The element's category is OST_Alignments.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Infrastructure.Alignment
public class Alignment
Name Return Type Description
M GetAlignments(Document) ICollection<Alignment> Returns all alignments in the given document.
M GetAlignments(View) ICollection<Alignment> Returns all alignments visible in the given view.
M GetClosestPoint(XYZ) XYZ Calculates the point on the alignment's geometry which is closest to the given model point.
M GetClosestStation(XYZ) double Calculates the alignment station closest to the given model point.
M GetDisplayedHorizontalCurveEndpoints() IList<HorizontalCurveEndpoint> Returns the endpoints of the alignment's horizontal curves. Only the points between and are returned.
M GetDistance(Double, Double) double Calculates the relative distance along the alignment between two stations based on their alignment distances according to Revit Internal Origin Coordinate Base.
M GetHCurveNormalAtStation(Double) XYZ Calculate 2d (X and Y components of returned vector) horizontal normal at given station.
M GetHCurveTangentAtStation(Double) XYZ Calculate 2d (X and Y components of returned vector) horizontal tangent at given station.
M Get(Document, Guid) Alignment Returns an in the document given its GUID.
M Get(Element) Alignment Returns an object given a Revit alignment element.
M GetPointAtStation(Double) XYZ Calculates the model point for a given alignment station.
M GetVCurveNormalAtStation(Double) XYZ Calculate 2d (X and Y components of returned vector) vertical normal at given station.
M GetVCurveTangentAtStation(Double) XYZ Calculate 2d (X and Y components of returned vector) vertical tangent at given station.
M IsValid() bool Checks if this object is a valid alignment.
M IsValid(Element) bool Checks if the element is a valid alignment.
Name Return Type Description
P Description string The Description of this alignment.
P DisplayedEndStation double Specifies the station at which the alignment's display ends, in Revit internal model units (standard Imperial feet).
P DisplayedStartStation double Specifies the station at which the alignment's display starts, in Revit internal model units (standard Imperial feet).
P Element Element The underlying element.
P EndStation double Specifies the station at which the alignment's geometric definition ends, in Revit internal model units (standard Imperial feet).
P GUID Guid The GUID of this alignment.
P Name string The Name of this alignment.
P StartStation double Specifies the station at which the alignment's geometric definition starts, in Revit internal model units (standard Imperial feet).