ENgetdemandindex function

Retrieves the index of a node's named demand category