I would like to create a command in the Annotate menu that will turn dimensioning text 90 degrees or back to 0 degrees depending on what degrees it is currently at. I am struggling with finding a dim variable or system variable that stores the current angle. I am just learning how to write macros and applying them to the menu with the CUI. Any help would be appreciated greatly. I have explored the following macro with what I could gleen online.
^c^c\dimedit;rotate;$m=$(if(=90 0)(90));
Or something like that.
Thanks for your help.
Might be easier just to define a dimstyle exactly like the current one except the text is rotated and change the ones you want to that style rather than trying to turn them programatically. Finding a pivot point might be difficult.
2 cents
Regards,
DJ
Also - Dim Styles only follow the drawing. I am hoping to create this as a menu item that will be usable from drawing to drawing without importing styles each time.
Thanks
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.