Author Topic: GETALLENV  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
GETALLENV
« on: November 25, 2005, 01:55:42 PM »
Hi all,

I'm trying to found how can I get a list of all ACAD Environnement..

(getenv "PrinterStyleSheetDir")
(getenv "PrinterConfigDir")

etc....

i've made a search in AutoCAD..but..nothing.. :oops:

thanks.
Keep smile...

Fatty

  • Guest
Re: GETALLENV
« Reply #1 on: November 25, 2005, 04:21:45 PM »
Hi all,

I'm trying to found how can I get a list of all ACAD Environnement..

(getenv "PrinterStyleSheetDir")
(getenv "PrinterConfigDir")

etc....

i've made a search in AutoCAD..but..nothing.. :oops:

thanks.

Hi Andrea,
I tested this and have a got the following results:
Code: [Select]
(getenv "PrinterStyleSheetDir")
_$ "C:\\Documents and Settings\\admin\\Application Data\\Autodesk\\AutoCAD 2005\\R16.1\\enu\\Plot Styles"

(getenv "PrinterConfigDir")
_$ "C:\\Documents and Settings\\admin\\Application Data\\Autodesk\\AutoCAD 2005\\R16.1\\enu\\plotters"

I think your problem is because of in the current profile that you use
these variables does not exist
Let you change profile in your drawing on another one and try to get
these both again

Thank you

Fatty

Andrea

  • Water Moccasin
  • Posts: 2372
Re: GETALLENV
« Reply #2 on: November 25, 2005, 04:41:09 PM »
Hi all,

I'm trying to found how can I get a list of all ACAD Environnement..

(getenv "PrinterStyleSheetDir")
(getenv "PrinterConfigDir")

etc....

i've made a search in AutoCAD..but..nothing.. :oops:

thanks.

Hi Andrea,
I tested this and have a got the following results:
Code: [Select]
(getenv "PrinterStyleSheetDir")
_$ "C:\\Documents and Settings\\admin\\Application Data\\Autodesk\\AutoCAD 2005\\R16.1\\enu\\Plot Styles"

(getenv "PrinterConfigDir")
_$ "C:\\Documents and Settings\\admin\\Application Data\\Autodesk\\AutoCAD 2005\\R16.1\\enu\\plotters"

I think your problem is because of in the current profile that you use
these variables does not exist
Let you change profile in your drawing on another one and try to get
these both again

Thank you

Fatty

Thanks Fatty,

But in fact no,

I just need to have al Environnement LIST variables...

eg:
with (getenv "ACAD")
you can get all directory folder in your AutoCAd search path...
but I need to have a list of all Environnement...

like:
"ACAD" "PrinterStyleSheetDir" "PrinterConfigDir" ....and they other who I don't realy know.

eg: If I need to get the directory for the PMP file....what is the environnement variable ?

thanks.
Keep smile...

Fatty

  • Guest
Re: GETALLENV
« Reply #3 on: November 25, 2005, 05:09:04 PM »
Hi Andrea

PMP files you can find in folder:
Code: [Select]
(vl-load-com)
(vla-get-printerdescpath
(vla-get-files
  (vla-get-preferences
    (vla-get-application
      (vla-get-activedocument
(vlax-get-acad-object))))))
;=>"C:\\Documents and Settings\\admin\\Application Data\\Autodesk\\AutoCAD 2005\\R16.1\\enu\\plotters\\PMP Files"

Fatty

  • Guest
Re: GETALLENV
« Reply #4 on: November 25, 2005, 05:35:02 PM »
Quote

I just need to have al Environnement LIST variables...

You can find it here:

http://www.afralisp.co.za/lisp/enviro.htm
Quote

Andrea

  • Water Moccasin
  • Posts: 2372
Re: GETALLENV
« Reply #5 on: November 28, 2005, 09:38:01 AM »
Quote

I just need to have al Environnement LIST variables...

You can find it here:

http://www.afralisp.co.za/lisp/enviro.htm
Quote

thanks Fatty...exactly what I need. ;-)
Keep smile...