FabricationPartCreate(Document, FabricationItemFile, ElementId) Method |
Creates a fabrication part element from a fabrication item file.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static FabricationPart Create(
Document document,
FabricationItemFile itemFile,
ElementId levelId
)
Public Shared Function Create (
document As Document,
itemFile As FabricationItemFile,
levelId As ElementId
) As FabricationPart
public:
static FabricationPart^ Create(
Document^ document,
FabricationItemFile^ itemFile,
ElementId^ levelId
)
static member Create :
document : Document *
itemFile : FabricationItemFile *
levelId : ElementId -> FabricationPart
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.
ExceptionsException | 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