| Revit 2020 API |
| MEPSystem..::..DivideSystem Method |
| MEPSystem Class See Also |
Divide the phyisical networks in the system and create a new system for each network.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since:
2014
Syntax
| C# |
|---|
public ICollection<ElementId> DivideSystem( Document ADoc ) |
| Visual Basic |
|---|
Public Function DivideSystem ( _ ADoc As Document _ ) As ICollection(Of ElementId) |
| Visual C++ |
|---|
public: ICollection<ElementId^>^ DivideSystem( Document^ ADoc ) |
Parameters
- ADoc
- Type: Autodesk.Revit.DB..::..Document
The document.
Return Value
The id of new created systems.
Remarks
This function only works for Hvac and Piping system.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | The system is not dividable. |