Creates a fabrication part element from a fabrication item file.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
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
FabricationPart
The new fabrication part.
Exceptions
| 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
|
See Also
Reference