AutoCAD 2013/2014/2015

Reply
Member
jkaufmanBASX
Posts: 4
Registered: ‎01-06-2014
Message 1 of 6 (216 Views)

Dimension Text Angle

216 Views, 5 Replies
01-27-2014 02:27 PM

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.

*Expert Elite*
drjohn
Posts: 1,690
Registered: ‎03-01-2006
Message 2 of 6 (205 Views)

Re: Dimension Text Angle

01-27-2014 02:58 PM in reply to: jkaufmanBASX

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

 

Member
jkaufmanBASX
Posts: 4
Registered: ‎01-06-2014
Message 3 of 6 (202 Views)

Re: Dimension Text Angle

01-27-2014 03:01 PM in reply to: drjohn
I am good with that idea - I was able to rotate the text when I right click on the dimension and go to properties but could not find a way to rotate the text through the dimstyle command where I would create the new dimstyle. Suggestions?
Member
jkaufmanBASX
Posts: 4
Registered: ‎01-06-2014
Message 4 of 6 (188 Views)

Re: Dimension Text Angle

01-27-2014 03:34 PM in reply to: jkaufmanBASX

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

*Expert Elite*
scot-65
Posts: 2,125
Registered: ‎12-11-2003
Message 5 of 6 (182 Views)

Re: Dimension Text Angle

01-27-2014 03:45 PM in reply to: jkaufmanBASX
Look into overrides instead of actually creating a unique dimension style. The format would go something like this for existing objects
(setvar SOMEDIMVARIABLE somevalue) -or- (command ".dim" somedimvariable somevalue "")
command DIMSTYLE "apply" and select the object.
(command ".dim" "Restore" [MyDimstyle] "Exit")
For creating new objects is similar.
conceptual.
Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
*Expert Elite*
drjohn
Posts: 1,690
Registered: ‎03-01-2006
Message 6 of 6 (178 Views)

Re: Dimension Text Angle

01-27-2014 03:59 PM in reply to: scot-65
That would work, too. (I hate overrides ... but that's just me). Since the dimtext placement does follow the drawing you can set up a dimstyle that is either horizontal or follows the dimline or vertical ... whatever and put that in your drawing template. No import then. Select as many dims as you want and go to properties and you can turn them (change style) all at once. Regards, DJ

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube