Author Topic: AutoCAD Plotstyle Folder Issue  (Read 1866 times)

0 Members and 1 Guest are viewing this topic.

deanbourke

  • Guest
AutoCAD Plotstyle Folder Issue
« on: February 16, 2006, 09:58:09 PM »
Hi,
I have three folders with the same named CTB file in them but changing the folders thru lisp doesn't flow through to the plot until I open the Options Dialog and hit OK.
Here is the code to change the plotstyles path including vla-RefreshPlotDeviceInfo

(defun c:pstf1 ()
(vla-put-PrinterStyleSheetPath
(vla-get-Files (vla-get-preferences (vlax-get-acad-object)))
"f:\\temp\\1"
)
(vla-RefreshPlotDeviceInfo (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
(PRINT (vla-GET-PrinterStyleSheetPath (vla-get-Files (vla-get-preferences (vlax-get-acad-object)))))
(princ)
)


I have tried:
(vla-put-activeprofile
(vla-get-profiles (vla-get-preferences (vlax-get-acad-object)))
(getvar "cprofile")
)
but no luck.

Any Ideas?

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: AutoCAD Plotstyle Folder Issue
« Reply #1 on: February 17, 2006, 03:04:41 AM »
Dean, check THIS thread.
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18