Author Topic: Looking for ACADENV variables  (Read 2373 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Looking for ACADENV variables
« 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..





« Last Edit: March 30, 2006, 01:50:16 PM by CAB »
Keep smile...

T.Willey

  • Needs a day job
  • Posts: 5251
Re: ACADENV
« Reply #1 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 for the enviroment setting you can change/get.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Looking for ACADENV variables
« Reply #2 on: March 30, 2006, 02:51:21 PM »
Hey !!  T.Willy..!!

That's great !!

thanks !!   :-)
Keep smile...

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Looking for ACADENV variables
« Reply #3 on: March 30, 2006, 03:20:51 PM »
You're welcome.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.