Has anybody had a trouble in setting this tab with code for 2021?
If I manually enter the paths through the options dialog and then use the vla-get-function
(SETQ READNODE (vla-GET-PrinterStyleSheetPath myFiles))
I get
READNODE = "L:\\ACAD BUSINESS FILES\\CWS Plot Styles;C:\\ProgramData\\Autodesk\\ACA 2012\\enu\\Plotters\\Plot Styles"
Now if I try to set that very same stings with code like this piece of code
(defun c:TEST-PLOT-PREFS ()
(vl-load-com)
;;; Getting locations of System and/or Application Folders and setting to Varaibles
(setq myProfile (vla-get-preferences (vlax-get-acad-object)))
(setq myFiles (vla-get-files myProfile))
(setq ProgramData
(strcat "C:\\ProgramData\\Autodesk\\ACA 2012\\enu\\")
)
;;; Setting Company Folder to variable .
(setq CWSCommonFolders (strcat "L:\\ACAD BUSINESS FILES"))
;;; Setting search path for Plot Styles node.
(vla-PUT-PrinterStyleSheetPath
myFiles
(strcat
(strcat CWSCommonFolders "\\CWS Plot Styles")
";"
(strcat ProgramData "Plotters\\Plot Styles")
)
)
(vlax-release-object myFiles) ; Release the object
)
and I get this blow-back at the command line
Automation Error. Invalid Argument
If I take out either one of the paths, it works like a charm. Something goofy I am missing,
FYI: With 2012 you are allowed to set multiple plotter "***" paths now.