SetPosition Method


Sets the position for a specified handle. This information is set to the rebar after the API execution is finished successfully.

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

Syntax

C#
public void SetPosition(
	int handleTag,
	XYZ position
)
Visual Basic
Public Sub SetPosition ( _
	handleTag As Integer, _
	position As XYZ _
)
Visual C++
public:
void SetPosition(
	int handleTag, 
	XYZ^ position
)

Parameters

handleTag
Type: SystemInt32
The tag of the handle.
position
Type: Autodesk.Revit.DBXYZ
Position of the handle.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The input point lies outside of Revit design limits.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

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 →