PDA

View Full Version : Changing the UCS of an existing dimension?


rpm
2005-01-20, 06:25 PM
Hi all,

I've got a sticky situation, midstream on a project I had to rotate the building 90 degrees. The horizontal dimensions are fine, and any new vert or horiz dims come in okay.

My problem lies with the existing (very many) vertical dimensions. They are reading from top to bottom (rotated 180 degrees of where they want to be) and on the right side of the dim line. I could globally change their rotation, and then physically move them to the other side of the line, but if I am going to do that I might as well just redo them from scratch.

Is there a way to collect the data of the dimension strings and automatically create a new string based on that data? I'm curious if I should pursue this since it's not the 1st time this has happened.

Thanks in advance,

Rick

Mike.Perry
2005-01-20, 11:26 PM
Hi

Have a browse of the following thread (especially take note of any links within) -

Dimension copying/rotating (http://forums.augi.com/showthread.php?t=7211)

Have a good one, Mike

jwanstaett
2005-01-21, 05:51 PM
if you add 1.570796 to DXF code 50 of the dimension this will fix the dimension

1.570796r = 90 degrees

i use the attach VBA program to do the rotate for me.

load the attach file and select DimRotation from Tools - Macros - Macro

note: I am using AutoCAD 2002

rpm
2005-01-21, 10:38 PM
if you add 1.570796 to DXF code 50 of the dimension this will fix the dimension

1.570796r = 90 degrees

i use the attach VBA program to do the rotate for me.

load the attach file and select DimRotation from Tools - Macros - Macro

note: I am using AutoCAD 2002
Thanks for the tip on Code 50, I also found that you can modify Code 51

(subst (cons 51 (- (abs (cdr (assoc 51 ele))) PI))

to achieve the same result. Thanks for the routine as well, always curious to disect VBA stuff....haven't jumped into it much yet.

Thanks again,

Rick

ps

Mike, thanks for the link to the other topics.