Creates a new MEP Electrical System element from an unused Connector.
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
- connector
- Type: Autodesk.Revit.DB Connector
The Connector to create this Electrical 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 connector. |