SetLocation Method


Moves the ImageInstance to the specified location

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

Syntax

C#
public void SetLocation(
	XYZ newLocation,
	BoxPlacement placementPoint
)
Visual Basic
Public Sub SetLocation ( _
	newLocation As XYZ, _
	placementPoint As BoxPlacement _
)
Visual C++
public:
void SetLocation(
	XYZ^ newLocation, 
	BoxPlacement placementPoint
)

Parameters

newLocation
Type: Autodesk.Revit.DBXYZ
The new location of the specified point
placementPoint
Type: Autodesk.Revit.DBBoxPlacement
The placementPoint specifies which point of the ImageInstance should be placed at the given location.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given newLocation is more than 10 miles from the origin of the model
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

See Also