Hello all,
I would like to have your comments about the proper way of setting/creating a global variable to represent my dwg scale when dealing with metric or imperial units. This is what I use now..
in a detail w/ metric units and scale of 1:50, my
DIMSCALE = 50 and a global variable say
#dwgsc also set to 50.
So for my lisp for changing a text height that I'd like to be 2.5mm, I have a line like this
(setq ht (* 2.5 #dwgsc)) -> the actual text height is 125
now this is the part which I'm not really sure if my approach is correct..
for imperial units w/ a scale of 1/4"=1'-0" (which is closest to 1:50), I use the following settings
for DIMSCALE = 48 and for
#dwgsc = dimscale or 48 x (/ 10 254) = 1.89 where (/ 10 254) is a conversion of inch to mm
so, for the same code above for changing text height, it'll still read the same
(setq ht (* 2.5 #dwgsc)) -> but this time the actual height is 4.725" which is roughly 120mm close enough to the above 125mm
Is this how you typically do your coding too? I can't exactly pinpoint what's weird expecially for imperial's, it's just that I have a feeling that there's another ways to go about this. Thanks for the replies in advance!!