ElectricalSystemCreate(Document, IListElementId, ElectricalSystemType) Method |
Creates a new MEP Electrical System element from a set of electrical components.
Namespace: Autodesk.Revit.DB.ElectricalAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static ElectricalSystem Create(
Document document,
IList<ElementId> electComponents,
ElectricalSystemType elecSysType
)
Public Shared Function Create (
document As Document,
electComponents As IList(Of ElementId),
elecSysType As ElectricalSystemType
) As ElectricalSystem
public:
static ElectricalSystem^ Create(
Document^ document,
IList<ElementId^>^ electComponents,
ElectricalSystemType elecSysType
)
static member Create :
document : Document *
electComponents : IList<ElementId> *
elecSysType : ElectricalSystemType -> ElectricalSystem
Parameters
- document Document
-
The Document.
- electComponents IListElementId
-
The electrical components in this system.
- elecSysType ElectricalSystemType
-
The System Type of electrical system.
Return Value
ElectricalSystem
If successful a new MEP Electrical System element within the project, otherwise
.
Exceptions
See Also