2023 Method
Changes 3
M

ElectricalLoadAreaData.CreateElectricalLoadAreas

Description:
Creates electrical load areas on all the empty plan circuits of the given level.
Remarks:
Use the HasCircuitsWithoutElectricalLoadAreas to check whether there are empty plan circuits in which there are no electrical load areas, if there are empty plan circuits, this API will create electrical load areas on each of them, otherwise, it will create nothing. In most cases, the electrical load areas will be created, updated and deleted automatically, but in some cases, there are some empty plan circuits and need to create electrical load areas on each of them.
public static ISet<ElementId> CreateElectricalLoadAreas(
	Document doc,
	ElementId levelId,
	ElementId phaseId
)
Return Value ISet<ElementId> The created electrical load areas.