Author Topic: need help setting printer config. search path for lisp PLEASE PLEASE PLEASE  (Read 1743 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
does anyone either know the vla codes or have a routine that will will set the "Printer Configuration Search Path" i have this one for setting the "Plot Style Table Search Path".

any help would be GREATLY appreciated.

here's the code for setting the "Plot Style Table Search Path":
Code: [Select]
(setq prefs(vla-get-preferences (vlax-get-acad-object))
      filePrefs (vla-get-files prefs)
)
(vla-put-printerstylesheetpath filePrefs "G:\\cadd standards\\Plotstyles")
(vla-refreshplotdeviceinfo
  (vla-get-activelayout
   (vla-get-activedocument
     (vlax-get-acad-object))))
(setq prefs nil)
(setq fileprefs nil)

Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Arch_Eric

  • Guest

ronjonp

  • Needs a day job
  • Posts: 7531
Put this in the VLIDE editor and inspect it.....

(setq prefs(vla-get-preferences (vlax-get-acad-object))
      filePrefs   (vla-get-files prefs)
)

It will show you all you need and more  :-P

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
oh man, thank you guys soooo much.

just so it's here in case someone else needs it:

Code: [Select]
(setq prefs(vla-get-preferences (vlax-get-acad-object))
      filePrefs (vla-get-files prefs)
)
(vla-put-PrinterConfigPath filePrefs "c:\\path\\path")
(vla-refreshplotdeviceinfo
  (vla-get-activelayout
   (vla-get-activedocument
     (vlax-get-acad-object))))
(setq prefs nil)
(setq fileprefs nil)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox