RVTDocs.com

FabricationPart.Create(Document, FabricationItemFile, ElementId)

Method
Description:
Creates a fabrication part element from a fabrication item file.
Syntax
public static FabricationPart Create(
	Document document,
	FabricationItemFile itemFile,
	ElementId levelId
)
Parameters
Parameter Type Description
document Document The document.
itemFile FabricationItemFile The fabrication item file.
levelId ElementId The element identifier associated with the <a href="577e5d4e-a558-118c-9dea-3b810b061775.htm">Level</a> the <a href="c9b86162-c105-696a-a919-49a7a7938cc4.htm">FabricationPart</a> will be created on.
Return Value
Type Description
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