View Full Version : Are there System Variables for these?
ronsarlo
2009-07-28, 09:27 PM
Heya,
I'm still on my warpath to keep my users from doing dumb things to their AutoCAD.
I have some guys who have a career long habit of not keying in coordinates for their insertions.
It drives me bat**** crazy.
But worse than that, they operate with CAD in a way that it doesn't let them know when they are being dumb.
I was hoping that these were system variables so I can control it via their start-up lisp?
"Display printable area"
"Display paper background"
I can't seem to find these in the AutoCAD help file, but experience leads me to believe that they are still controlled via system variables?
What other resources would I have for finding out?
thanks!!!
T.Willey
2009-07-28, 09:56 PM
I turn mine off, but here is one way you can do it. Just change the 0 to 1, and it will turn all the options on.
(setq AcadObj (vlax-get-Acad-Object))
(setq DisObj (vla-get-Display (vla-get-Preferences AcadObj)))
(vla-put-ShortCutMenuDisplay (vla-get-User (vla-get-Preferences AcadObj)) 0)
(mapcar
'(lambda (x)
(vlax-put DisObj x 0)
)
'(
"DisPlayScreenMenu"
"DisplayScrollbars"
"LayoutCreateViewport"
"LayoutDisplayMargins"
"LayoutDisplayPaper"
"LayoutDisplayPaperShadow"
"LayoutShowPlotSetup"
)
)
ronsarlo
2009-07-28, 10:20 PM
I am sorry,
I should have been more specific :?
Layout Elements:
Display printable area: off
Display paper background: on
Display Paper shadow: off
there's no straight up system variable or command for these?
vlisp is kinda on my to-do list, but I have other priorities first.
T.Willey
2009-07-28, 10:28 PM
Not that I know of. I had to do it this way. They might be environment variables, but I'm not sure.
ronsarlo
2009-07-28, 10:33 PM
bummer. the closest I got was using "plotrotmode" "2".
Um, i guess i am really sorry to keep using you guys as my cop-out source of info.... :Oops:
but... testament to your effectiveness? :lol:
anyways, is there a variable to change the "current viewport scale" that shows up in the viewport tool bar dropdown box?
thanks again
irneb
2009-07-29, 12:25 PM
Seems to be saved inside the registry under the current profile. See screen capture attached of REGEDIT. Strangely, these are only placed in registry if they're turned off in the Options Dialog. If they're turner on, that setting is removed from the registry.
ronsarlo
2009-07-29, 06:54 PM
whoa, that's different :?
I guess I should steer clear of fiddling with automating these?
I really understand Ronsarlo. For instance, I have a draughtswoman, her idea is that she, as draughtswoman, has to contribute with something. And her contribution must be her own, unique, style to draw. Standards and rules are for the others.
And every time I speak with her, she always reply I try to use her as a robot.
I always say that discipline is for soldiers, but...
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.