EquipmentCount1

Top  Previous  Next

EquipmentCount1(ElecDB, iAmpsMin, iAmpsMax, sDisconnect, sVolts, sLayerSystem)

This function returns a count of equipment connections from the database.

iAmpsMin: The minimum amps. All equipment connections with amps greater than this value will be included in the count. If it is passed as 0, no minimum will be used.

iAmpsMax: The maximum amps. All equipment connections with amps less than or equal to this value will be included in the count. If it is passed 0, no maximum will be used.

sDisconnect: The disconnect type to count. The valid options are the names defined in the equipment block customization dialog for this project. If it is passed as "", all disconnect types will be counted.

sVolts: The voltage to count. If it is passed as "", all voltages will be counted. The voltages that can be passed are:

120V 1P 2W
208V 2P 2W
208/120V 2P 3W
240V 2P 2W
240/120V 2P 3W
277V 1P 2W
480V 2P 2W
208V 3P 3W
208V 3P 4W
240V 3P 3W
480V 3P 3W
480V 3P 4W
575V 3P 3W

Common Variables

ElecDB

sLayerSystem

Examples

Examples involving the common variables can be found by clicking on their links above.

EquipmentCount1('DM Elec'!$B$1, 0, 0, "", "", "")

This returns the count of all equipment in the project.

EquipmentCount1('DM Elec'!$B$1, 10, 100, "Hardwired Connection", "120V 1P 2W", "New")

This returns the count of all new equipment of disconnect type "Hardwired Connection" between 10 and 100 amps that are 120V 1P 2W.


Page url: http://www.designmaster.biz/support/electrical/documentation/index.html?excel_add_in_functions_equipmentcount1.htm