PlaceOnHost Method (ElementId, Connector, Double, Double)


Fabrication Hosted Info Place On Host(Element Id, Connector, Double, Double) Method

Places the part on the specified host.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void PlaceOnHost(
	ElementId hostId,
	Connector hostConnector,
	double distance,
	double axisRotation
)

Parameters

hostId ElementId
Identifier of the host fabrication part.
hostConnector Connector
The connector of the host.
distance Double
The distance from the connector to place the hosted part. Units are in feet (ft).
axisRotation Double
The axis rotation in radians.
Exceptions
Exception Condition
ArgumentException Invalid fabrication part host. The host should be a straight fabrication part. -or- Invalid connector of fabrication part host. -or- The distance is out of range. -or- For rectangular and oval parts the axis rotation must be a multiple of PI/2.
ArgumentNullException A non-optional argument was null
Remarks
The document must be regenerated before the fabrication part can be used. Check ValidationStatus after regeneration to see if the part is valid for fabrication.
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 →