Rehost Method (Reference, XYZ)


Rehost Form to edge, face or curve.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.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.DBReference
The geometry reference on which to rehost the form.
location
Type: Autodesk.Revit.DBXYZ
The location to which to Rehost the form.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullExceptionThrown when the hostRef or location is a null reference (Nothing in Visual Basic).
Autodesk.Revit.ExceptionsInvalidOperationExceptionThrown when rehosting Form failed.

See Also