MoveAdaptiveComponentInstance Method


Moves Adaptive Component Instance by the specified transformation.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012

Syntax

C#
public static void MoveAdaptiveComponentInstance(
	FamilyInstance famInst,
	Transform trf,
	bool unHost
)
Visual Basic
Public Shared Sub MoveAdaptiveComponentInstance ( _
	famInst As FamilyInstance, _
	trf As Transform, _
	unHost As Boolean _
)
Visual C++
public:
static void MoveAdaptiveComponentInstance(
	FamilyInstance^ famInst, 
	Transform^ trf, 
	bool unHost
)

Parameters

famInst
Type: Autodesk.Revit.DB FamilyInstance
The FamilyInstance
trf
Type: Autodesk.Revit.DB Transform
The Transformation
unHost
Type: System Boolean
True if the move should disassociate the Point Element Refs from their hosts. False if the Point Element Refs remain hosted.

Remarks

This method will attempt a rigid body motion of all the individual references and hence the instance itself. However if unHost parameter is 'false' and any of the instance's references are hosted to any geometry, then those references will move within the constraints. The instance then adapts to where its references are moved to.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions ArgumentsInconsistentException trf is not a rigid body transformation.
Autodesk.Revit.Exceptions InvalidOperationException Unable to move the adaptive component instance.

See Also