FabricationPart.Create
Description:
Creates a fabrication part element based on button.
Creates a fabrication part element based on button.
Overloads (3):
Create(Document,FabricationServiceButton,Int32,ElementId)
public static FabricationPart Create(
Document document,
FabricationServiceButton button,
int condition,
ElementId levelId
)
-
documentThe document.
-
buttonThe fabrication service button to use.
-
Int32conditionThe condition index.
-
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 index condition is not larger or equal to 0 and less than ConditionCount.
-
The fabrication part type does not exist. Reload the service using FabricationConfiguration.LoadServices.