FabricationPartCreateHanger(Document, FabricationServiceButton, Int32, ElementId) Method |
Creates a free placed hanger.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static FabricationPart CreateHanger(
Document document,
FabricationServiceButton button,
int condition,
ElementId levelId
)
Public Shared Function CreateHanger (
document As Document,
button As FabricationServiceButton,
condition As Integer,
levelId As ElementId
) As FabricationPart
public:
static FabricationPart^ CreateHanger(
Document^ document,
FabricationServiceButton^ button,
int condition,
ElementId^ levelId
)
static member CreateHanger :
document : Document *
button : FabricationServiceButton *
condition : int *
levelId : ElementId -> FabricationPart
Parameters
- 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
FabricationPart
The newly-created fabrication hanger.
Exceptions
See Also