Rehost Method (Reference, XYZ)


Rehost Form to edge, face or curve.

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

Syntax

C#
public void Rehost(
	Reference hostRef,
	XYZ location
)
Visual Basic
Public Sub Rehost ( _
	hostRef As Reference, _
	location As XYZ _
)
Visual C++
public:
void Rehost(
	Reference^ hostRef, 
	XYZ^ location
)

Parameters

hostRef
Type: Autodesk.Revit.DB Reference
The geometry reference on which to rehost the form.
location
Type: Autodesk.Revit.DB XYZ
The location to which to Rehost the form.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException Thrown when the hostRef or location is a null reference ( Nothing in Visual Basic) .
Autodesk.Revit.Exceptions InvalidOperationException Thrown when rehosting Form failed.

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 →