ElectricalSystem.Create(Document, IList<ElementId>, ElectricalSystemType)
Method
Description:
Creates a new MEP Electrical System element from a set of electrical components.
Creates a new MEP Electrical System element from a set of electrical components.
Syntax
public static ElectricalSystem Create(
Document document,
IList<ElementId> electComponents,
ElectricalSystemType elecSysType
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The Document. |
electComponents | IList | The electrical components in this system. |
elecSysType | ElectricalSystemType | The System Type of electrical system. |
Return Value
Type | Description |
---|---|
ElectricalSystem | If successful a new MEP Electrical System element within the project, otherwise . |
Exceptions
Exception | Condition |
---|---|
ArgumentException | There should be at least one component that can create the specified circuit type |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |