2026 Method
Changes 3
M

ElectricalLoadAreaData.HasCircuitsWithoutElectricalLoadAreas

Description:
Checks whether there are any empty plan circuits in which there are no electrical load areas.
public static bool HasCircuitsWithoutElectricalLoadAreas(
	Document doc,
	ElementId levelId,
	ElementId phaseId
)
  • doc
    The document to check.
  • levelId
    The base level on which the empty plan circuits to check.
  • phaseId
    The associated phase in which the empty plan circuits to check.
Return Value Boolean True if there are empty plan circuits in which there are no electrical load areas, false otherwise.
  • doc is not a project document. -or- The ElementId levelId is not a Level. -or- The id does not represent a valid phase.
  • A non-optional argument was null
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).