TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on March 30, 2006, 11:07:40 AM

Title: Looking for ACADENV variables
Post by: Andrea on March 30, 2006, 11:07:40 AM
Hi all,...

I'm trying to found all ACADENV variables possibilities..
and also try to found all vlax-get variables possibilties..

Need to automate the custum setting here.. :x

eg:
(setq get1 (getenv "HideSystemPrinters"))

or

(setq Display (vla-get-Display (vla-get-Preferences AcadApp))
            Margins (vlax-get Display "LayoutDisplayMargins"))

If someone know how to get the current CTB ....please don't be shy to show me... :-)

you can also point me to the right link direction ?

thanks..





Title: Re: ACADENV
Post by: T.Willey on March 30, 2006, 11:28:20 AM
The current ctb file is per layout.  To get it from the current layout use:
Code: [Select]
(vla-get-StyleSheet
 (vla-get-ActiveLayout
  (vla-get-ActiveDocument
   (vlax-get-Acad-Object)
  )
 )
)
You can check here  (http://www.afralisp.co.za/lisp/enviro.htm)for the enviroment setting you can change/get.
Title: Re: Looking for ACADENV variables
Post by: Andrea on March 30, 2006, 02:51:21 PM
Hey !!  T.Willy..!!

That's great !!

thanks !!   :-)
Title: Re: Looking for ACADENV variables
Post by: T.Willey on March 30, 2006, 03:20:51 PM
You're welcome.