FabricationPart.Create
Description:
Creates a fabrication part element based on button and size.
Creates a fabrication part element based on button and size.
Overloads (3):
Create(Document,FabricationServiceButton,Double,Double,ElementId)
public static FabricationPart Create(
Document document,
FabricationServiceButton button,
double width,
double depth,
ElementId levelId
)
-
documentThe document.
-
buttonThe fabrication service button to use. Matches button condition based on the specified size.
-
DoublewidthThe width of the part. Units are in feet (ft).
-
DoubledepthThe depth of the part. Units are in feet (ft). It should be equal to width for round part.
-
levelIdThe element identifier associated with the Level the FabricationPart will be created on.
-
Fabrication service button contains invalid fittings. -or- Please use FabricationPart.CreateHanger to create fabrication hanger. -or- The ElementId levelId is not a Level.
-
A non-optional argument was null
-
The fabrication part type does not exist. Reload the service using FabricationConfiguration.LoadServices. -or- failing to match a button condition based on specific size.