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