plotter and plot style location by lisp?

George Drayton

Usenet Archive
Joined
Jul 23, 2003
Messages
24
Reaction score
0
Does anyone know how to find the path to plotters and plot styles (esp in A2004) with lisp -allowing for the possibility that they might not be in the default location?
 
George Drayton said:
Does anyone know how to find the path to plotters and plot styles (esp in A2004) with lisp -allowing for the possibility that they might not be in the default location?

Plotter configs =
(vla-get-PrinterConfigPath (vla-get-files (vla-get-preferences (vlax-get-acad-object))))

Plot Styles =
(vla-get-PrinterStyleSheetPath (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
 
Of course if you don't like the newer, simpler, more user friendly, etc. VLA* stuff; you could always try (case specific):
(getenv "PrinterConfigDir") for the plotter directory, and (getenv "PrinterStyleSheetDir") for the Plotstyles directory, and as an added bonus, (getenv "PrinterDescDir") for the hdi drivers and pmp files location.

Cheers
 

Latest threads

Back
Top