Creates a new MEP Electrical System element from a set of electrical components.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- electComponents
- Type: System.Collections.Generic ICollection ElementId
The electrical components in this system.
- elecSysType
- Type: Autodesk.Revit.DB.Electrical ElectricalSystemType
The System Type of electrical system.
Return Value
If successful a new MEP Electrical System element within the project, otherwise a null reference ( Nothing in Visual Basic) .Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentNullException | Thrown when the specified parameter Value is a null reference ( Nothing in Visual Basic) . |
Autodesk.Revit.Exceptions ArgumentOutOfRangeException | Thrown when the elecSysType parameter Value is out of the range of ElectricalSystemType. |
Autodesk.Revit.Exceptions InvalidOperationException | Thrown when the electrical system cannot be created by these input electrical components. |