Save fabrication parts to an MEP job that can be opened in the fabrication software.
Namespace:
Autodesk.Revit.DB
Assembly:
RevitAPI
(in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2019
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
-
Type:
Autodesk.Revit.DB
Document
The document.
- ids
-
Type:
System.Collections.Generic
ISet
ElementId
List of element Ids of fabrication parts or assemblies and group elements that contain fabrication parts to save. Non-fabrication part elements will be ignored.
- filename
-
Type:
System
String
The full path and filename of the fabrication job to save.
- saveOptions
-
Type:
Autodesk.Revit.DB.Fabrication
FabricationSaveJobOptions
Options for the save operation.
Return Value
Returns a list of fabrication part element Ids that were saved to the fabrication job.Remarks
Only fabrication MAJ files are supported.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentException | Fabrication configuration is missing. |
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was null |
Autodesk.Revit.Exceptions InvalidOperationException | the path to the filename must already exist and be writeable |
Autodesk.Revit.Exceptions InvalidPathArgumentException | The destination file name includes one or more invalid characters. |