2027 Method
Changes 0
M

FabricationPart.CreateHanger

Description:
Creates a hanger on the fabrication part.
Overloads (3):
public static FabricationPart CreateHanger(
	Document document,
	FabricationServiceButton button,
	ElementId hostId,
	Connector hostConnector,
	double distance,
	bool attachToStructure
)
  • document
    The document.
  • button
    The fabrication service button to use. It finds the matching condition automatically if the button has multiple condition.
  • hostId
    The host part id. The host should be one horizontal straight part.
  • hostConnector
    The connector of the host.
  • Double
    distance
    The distance from the input connector of the host part. Units are in feet (ft).
  • Boolean
    attachToStructure
    Attach to the nearest structural element. The structural element might be one of Floor/Roof/Stair/Structure Framing.
Return Value FabricationPart The newly-created fabrication hanger.