I would like to access the model index numbers (i.e. which VARs, CONs, ICONs, STATEs) for a particular model from Python, but I can't find an API which does that. I know I can use DOCU to get a human-readable report, but it seems silly to parse that report in software to figure out the right VARs for my model. Is there a better way, where PSSE will feed the indices to Python directy as an API output?

Thank you for your help!

Update: Thanks, the list of commands to fetch model indices (mdlind, dc2auxmind, etc.) was almost what I was looking for. Unfortunately, the model I want to query is an auxiliary signal model not associated with any equipment (a controller at "bus 0"), so doesn't seem to be accessible through any of the equipment-specific commands. I did a little more hunting through the API manual, but I fear I may be out of luck on this one, at least in V32. Additional suggestions are welcome, though!

I can not help you. I have exactly the same problem. To access to the model index values of common-type models I use the list given in the anwer given by JervisW. But I am not able to find a similar API to 'subroutine-type' models (bus 0).

The only options that I have found are (1) find the position manually or (2) use a load model with P=Q=0 instead of a subroutine-type model.