Converts the set of MEP design elements into fabrication parts.
Namespace: Autodesk.Revit.DB.FabricationAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2017
Syntax
C# |
---|
public DesignToFabricationConverterResult Convert( ISet<ElementId> selection, int serviceId ) |
Visual Basic |
---|
Public Function Convert ( _ selection As ISet(Of ElementId), _ serviceId As Integer _ ) As DesignToFabricationConverterResult |
Visual C++ |
---|
public: DesignToFabricationConverterResult Convert( ISet<ElementId^>^ selection, int serviceId ) |
Parameters
- selection
- Type: System.Collections.Generic..::..ISet<(Of <(<'ElementId>)>)>
The set of element identifiers to convert from MEP design elements to fabrication parts.
- serviceId
- Type: System..::..Int32
The identifier of the fabrication service.
Remarks
After this method has been invoked, call:
- GetConvertedFabricationParts()()()() to get a set of element identifiers for the newly created fabrication parts.
- GetElementsWithOpenConnector()()()() to get a set of fabrication part or MEP design element identifiers with open connectors, caused by fittings failing to convert.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | the selection contains invalid elements to convert. -or- the specified fabrication service is not valid for all domains in the selection. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |
Autodesk.Revit.Exceptions..::..InvalidOperationException | no fabrication configuration is loaded. |