Man oh Man
It gets even deeper now.
I didn't think about the profiles.
For example, if Land Desktop is already open, then the starup routine in The Acad.dvb file is saying, OK
Land is the (menufile) main cui.
Now, if I open Map Enabled, the macro (from the same acad.dvb file) is started again and I believe it is seeing Land as the main cui from Land Desktop and telling me that the system variable can not be set.
On top of that, if royally F'd up my MapGeneral profile, :pissed:
So, luckily I had that backed up and restored it.
So, this is interesteing, I have 2 Versions of ACAD sharing the same acad.dvb file.
So, what I think I will need to do is first,
Check for profile:
If profile = LandDesktop then
The rest of my code
Else
The rest of my code
End if
Mark