I am trying to use the following to change the dim style to a style I use often. The code seems to hang up at various points, usually @ the main dim menu. I have made a custom toolbar and it loads as a context toolbar. This code is assigned to an icon. Everything else seems to work fine.
The keyboard shortcut that you mentioned will take you back to the Main Dimensions menu because of S0 keystroke in the end. If you want to stay put in Load/Save menu, you can simply remove the S0 from your shortcut.
If I am mistaken in understanding could you please clarify further by mentioning the buttons that are displayed after the macro is executed and what do you expect? By hang do you mean DataCAD freezes? Do you have to Ctrl+Alt+Del to close DataCAD?
The macro took me back to the Dimension menu that has "linear", "angular" etc.. options. I would call it the main dimensions menu.
When I used the term "hang" I was refering to what I think the macro is doing . Datacad works fine, I can continue working with no issues.
Having said all this the toolbar button I created now works...? I didn't change anything or even close out of Datcad, it just started to work. The keyboard macro I created as a test now works as well.
I'm guessing this problem is going to reappear so if you have any suggestions ...
If DataCAD was still running while you were making changes in the DTB file, the changes would not be applicable. You have to restart DataCAD every-time you make change to the Toolbar file. I think this was the problem in the first place.