This interface can be used to read/write certain properties of the active DSS object. The structure of the interface is as follows:


int32_t PDElementsI(int32_t Parameter, int32_t Argument);


This interface returns an integer with the result of the query according to the value of the variable Parameter, which can be one of the following:


Parameter 0: PDElements.Count

This parameter gets number of PDElements in active circuit.


Parameter 1: PDElements.First

This parameter sets the first enabled PD element to be the active element. Returns 0 if none found.


Parameter 2: PDElements.Next

This parameter sets the next enabled PD element to be the active element. Returns 0 if none found.


Parameter 3: PDElements.IsShunt

This parameter returns 1 if the PD element should be treated as a shunt element rather than a series element. Applies to capacitor and reactor elements in particular.


Parameter 4: PDElements.NumCustomers

This parameter gets the number of customers in this branch.


Parameter 5: PDElements.TotalCustomers

This parameter gets the total number of customers from this branch to the end of the zone.


Parameter 6: PDElements.ParentPDElement

This parameter gets the parent PD element to be the active circuit element. Returns 0 if no more elements upline.


Parameter 7: PDElements.FromTerminal

This parameter gets the number of the terminal of active PD element that is on the "from" side. This is set after the meter zone is determined.


Parameter 8: PDElements.SectionID

This parameter gets the integer ID of the feeder section that this PDElement branch is part of.