Fabrication |
Creates a fabrication part element from a fabrication item file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

public static FabricationPart Create(
Document document,
FabricationItemFile itemFile,
ElementId levelId
)
Parameters
- document Document
- The document.
- itemFile FabricationItemFile
- The fabrication item file.
- levelId ElementId
- The element identifier associated with the Level the FabricationPart will be created on.
Return Value
FabricationPartThe new fabrication part.

Exception | Condition |
---|---|
ArgumentException | The item file is not valid for use in Revit. -or- The item file has not been loaded into the configuration. -or- The ElementId levelId is not a Level. |
ArgumentNullException | A non-optional argument was null |
