FabricationPartType.Lookup
Description:
Looks up an existing fabrication part type based on a specfic fabrication service button and condition.
Looks up an existing fabrication part type based on a specfic fabrication service button and condition.
public static ElementId Lookup(
Document document,
FabricationServiceButton button,
int condition
)
-
documentThe document.
-
buttonThe fabrication service button.
-
Int32conditionThe condition index.
Return Value
ElementId
Identifier of the fabrication part type element or invalidElementId if no fabrication part type exist for the
specific fabrication service button and condition
-
A non-optional argument was null
-
The index condition is not larger or equal to 0 and less than ConditionCount.