| Revit 2016 API |
| FabricationHostedInfo..::..PlaceOnHost Method |
| FabricationHostedInfo Class See Also |
Places the part on the specified host.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since:
2016
Syntax
| C# |
|---|
public void PlaceOnHost( ElementId hostId, Connector hostConnector, double distance ) |
| Visual Basic |
|---|
Public Sub PlaceOnHost ( _ hostId As ElementId, _ hostConnector As Connector, _ distance As Double _ ) |
| Visual C++ |
|---|
public: void PlaceOnHost( ElementId^ hostId, Connector^ hostConnector, double distance ) |
Parameters
- hostId
- Type: Autodesk.Revit.DB..::..ElementId
Id of the host fabrication part.
- hostConnector
- Type: Autodesk.Revit.DB..::..Connector
The connector of the host.
- distance
- Type: System..::..Double
The distance from the connector to place the hosted part. Units are in feet (ft).
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..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. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |