RVTDocs.com

FabricationPart.CreateHanger(Document, FabricationServiceButton, Int32, ElementId)

Method
Description:
Creates a free placed hanger.
Syntax
public static FabricationPart CreateHanger(
	Document document,
	FabricationServiceButton button,
	int condition,
	ElementId levelId
)
Parameters
Parameter Type Description
document Document The document.
button FabricationServiceButton The fabrication service button to use.
condition Int32 The condition index. If the button has multiple conditions.
levelId ElementId The level identifier associated with the level.
Return Value
Type Description
FabricationPart The newly-created fabrication hanger.
Exceptions
Exception Condition
ArgumentException Invalid fabrication service button.
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException The index condition is not larger or equal to 0 and less than ConditionCount.