Save fabrication parts to an MEP job that can be opened in the fabrication software.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2019
Syntax
C# |
---|
public static ISet<ElementId> SaveAsFabricationJob( Document document, ISet<ElementId> ids, string filename, FabricationSaveJobOptions saveOptions ) |
Visual Basic |
---|
Public Shared Function SaveAsFabricationJob ( _ document As Document, _ ids As ISet(Of ElementId), _ filename As String, _ saveOptions As FabricationSaveJobOptions _ ) As ISet(Of ElementId) |
Visual C++ |
---|
public: static ISet<ElementId^>^ SaveAsFabricationJob( Document^ document, ISet<ElementId^>^ ids, String^ filename, FabricationSaveJobOptions^ saveOptions ) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document.
- ids
- Type: System.Collections.Generic..::..ISet<(Of <(<'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. |