Revit 2026 API
Project |
Gets the coordinates of a point in the ProjectLocation's coordinate system.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ProjectPosition GetProjectPosition( XYZ point )
Public Function GetProjectPosition ( point As XYZ ) As ProjectPosition
public: ProjectPosition^ GetProjectPosition( XYZ^ point )
member GetProjectPosition : point : XYZ -> ProjectPosition
Parameters
- point XYZ
Return Value
ProjectPosition
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Unable to use the project position's transform to calculate the point. |

When getting this value, the North/South, East/West, and Elevation values report the coordinates of the point similar to the Revit command "Report Shared Coordinates". To get the values of the transformations applied by this project location, pass XYZ.Zero.
If the project has acquired shared coordinates from a linked model, the shared coordinate transformation will be reflected in the coordinates of the transformed point returned by this property.
See Also