SetProjectPosition Method


Sets the coordinates of a point in the ProjectLocation's coordinate system.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public void SetProjectPosition(
	XYZ point,
	ProjectPosition position
)
Visual Basic
Public Sub SetProjectPosition ( _
	point As XYZ, _
	position As ProjectPosition _
)
Visual C++
public:
void SetProjectPosition(
	XYZ^ point, 
	ProjectPosition^ position
)

Parameters

point
Type: Autodesk.Revit.DBXYZ
position
Type: Autodesk.Revit.DBProjectPosition

Remarks

When setting this value, the transformations applied to the location are modified such that the passed point becomes the specified North/South, East/West and Elevation, and the coordinate transform will have the designated angular rotation. This is similar to the Revit command "Specify Coordinates at Point".

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException Unable to use the project position's transform to calculate the point.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →