FabricationPart.CreateHanger
Description:
Creates a hanger on the fabrication part.
Creates a hanger on the fabrication part.
Overloads (3):
CreateHanger(Document,FabricationServiceButton,ElementId,Connector,Double,Boolean)
public static FabricationPart CreateHanger(
Document document,
FabricationServiceButton button,
ElementId hostId,
Connector hostConnector,
double distance,
bool attachToStructure
)
-
documentThe document.
-
buttonThe fabrication service button to use. It finds the matching condition automatically if the button has multiple condition.
-
hostIdThe host part id. The host should be one horizontal straight part.
-
hostConnectorThe connector of the host.
-
DoubledistanceThe distance from the input connector of the host part. Units are in feet (ft).
-
BooleanattachToStructureAttach to the nearest structural element. The structural element might be one of Floor/Roof/Stair/Structure Framing.
-
Hangers may only be placed on straight horizontal fabrication segments and some kind of fittings. -or- Invalid fabrication service button. -or- The distance is out of range.
-
A non-optional argument was null
-
cannot place hanger on the host.