Re: (maybe) Save LISP variables with drawing. 2006.



The problem with the User variables is that other programmers can use them
too. If you have complete control over the programming environment, that
shouldn't be a real problem, but if your place is like most places I've
worked, operators are using all kinds of routines written by god knows
who...

I suppose you could run a routine to periodically check the values of these
things against a list of acceptable values...
--


MichaelB
www.michaelbulatovich.ca

"Mr. B" <User@xxxxxxxxxxx> wrote in message
news:3sibp1hqd3v0mka5sleq2tr1kbmpp7p9ei@xxxxxxxxxx
> With Deft Fingers, "gruhn" <gruhn@xxxxxxxxxxxxx> wrote:
>
>>One tool is to set drawing scale with one click. Set line scale and text
>>scale and... It has worked well for years.
>
>>It also sets a variable of our own devising, call it "RARDwgScale".
>
>>This is a new behaviour with 2006. It would _seem_ that somewhere "save
>>our
>>lisp variables with the drawing" checkbox has been turned off. We would
>>like
>>to turn it back on.
>
> I've not yet used 2006, but what I've been doing for years now is to put
> the
> Drawing Scale info (metric/imperial and scale value) into Two (2) drawing
> variables (which get saved in the Dwg file).
>
> If I recall, there are three such varable names you can use (I only use 2
> of
> them). They are UserR1 to UserR5 and UserI1 (that is Eye 1) to UserI5. I
> don't think that these are used much by anyone that I've ever come across.
> Most don't even know that they are there (as they do not show up in SETVAR
> ?.
>
> I use UserR1 for the scale factor (ie: 96 for 1/8th scale - 8 x 1/8")
>
> And I use UserI1 for metric or imperial.
>
> I retrieve them like the following:
>
> (setq figscl (getvar "UserR1")) ; find Figure Scale factor
>
> (setq Inmm (getvar "USerI1")) ; find if Inches 1 or MM 0
> (if (= Inmm 0) (setq figscal (* figscl 25.4)))
> (if (= Inmm 1) (setq figscal figscl))
>
>
> If you are using In-House custom menus and Lisp routines, you might want
> some
> one to check a few lines of their sourse code to see what's going on.
>
> Regards,
>
> BruceF


.



Relevant Pages

  • RE: how to display the virtual dimensions of a page via the ruler.
    ... Next, in order to obtain the scale and dimensions I was striving for, I ... retaining the preset drawing scale to let say A1, as it was in my situation. ... able to juxtapose or switch the display ruler to any other scale and/or unit. ...
    (microsoft.public.visio.general)
  • Re: (maybe) Save LISP variables with drawing. 2006.
    ... >One tool is to set drawing scale with one click. ... >lisp variables with the drawing" checkbox has been turned off. ... Drawing Scale info into Two drawing ... Most don't even know that they are there (as they do not show up in SETVAR ?. ...
    (comp.cad.autocad)
  • Re: Pen problem (bug?) when using ScaleTransform.
    ... Is the pen width really 1 pixel or 1 page unit? ... or scale the pen to the inverse of the drawing scale. ... > If I for instance draw a an rectangle with an outline/border and the Pen ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Resize or rescale drawing
    ... File / Page Setup / Drawing Scale ... have been designed to adapt to the page scale when they were dropped. ... > Is it possible to resize a whole diagram. ...
    (microsoft.public.visio)