Morning everyone, glad to see you all here for this uh, ... bored meet'n.
sorrySo, I have several drawings I need to fix and they have dimensions that take forever to manually edit. I want to update the dimension style by a lisp routine so I can get these done reletively quickly.
I ran a search for "change dim style" and found this post
http://www.theswamp.org/index.php?topic=8235.0 by CAB which has a wealth of information in it. I am assuming to update a dimension style I would follow roughly the same format, but I have a bunch of existing dimensions so I can't just change the style itself.
So, here's what I need/want to do. The following variables are the ones I need to change:
DIMATFIT (arrow & text fit)
DIMLWD (Line & leader lineweight)
DIMLWE (Line lineweight)
DIMTAD (Text above Dimension line)
DIMTIH (Text inside extensions)
DIMTMOVE (Text movement)
So, I can grab all dimensions
< ... >
(setq i -1
objDimensions (ssget "_X" '((0 . "DIMENSION"))))
(while (setq objDim (ssname objDimensions (setq i (1+ i))))
(setq objInfo (entget objDim))
But how do I get the variables listed above for each dimension and apply the changes to each existing dimension?
Then when that is done, how can I change the dim style so any new dimensions created will have the new variable settings? Would I (for example) create a temporary dim style and with each dimension I grab, put on the new dim style, then when all the dimensions have been moved over, change the original dim style - using CAB's example link posted above - and then move all the dimensions back to the original style?
What are your thoughts and suggestions on this idea?
Thank you all for your expertise, that's why I called you all to this uh, ... bored meet'n.