TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: deanbourke on February 16, 2006, 09:58:09 PM

Title: AutoCAD Plotstyle Folder Issue
Post by: deanbourke 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?
Title: Re: AutoCAD Plotstyle Folder Issue
Post by: Jürg Menzi on February 17, 2006, 03:04:41 AM
Dean, check THIS (http://www.theswamp.org/forum/index.php?topic=8444.msg109249#msg109249) thread.