Recently had the chance to don my programmer's hat again, and I am stuck on how to do this better than using SendCommand.
I want to change the active Display Configuration via VBA.
I can pull out the value of the current display config by yanking out the xdata for the active viewport associated with the AEC_DISP_REP_CONFIGURATIONS dictionary, and then getting the handle associated with the 1005 value of AECBASE within that dictionary.
However, the handle won't be static across drawings, so I can't just SetXData back the same way I found the name of it. Can I?
Any ideas as to how I can do this? My current method works "SendCommand -aecdisplayconfigsetcurrent" but a little squirrel once told me not to use SendCommand unless there was no other way of doing it.