
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everybody,
I am currently working on a lisp routine that sets file paths under the options. It works (for the most part) but I've run in to some snags, the main issue right now being this code:
(setenv "PrinterStyleSheetDir" "C:\\ACAD\\Plotting\\Plot Styles; C:\\ACAD\\CMN-2014\\Plot Styles")
We have our own office plot style that we use, but we also have to accommodate some clients that require their own plot styles (which is why there are two paths there). We use a .ctb while the client uses a .stb.
The issue I'm encountering is that when trying to plot a .dwg that uses the client's .stb, the plot window shows that the .stb is missing (which is located under the second path). However, once opening the Options and hitting Apply, AutoCAD now correctly sees the .stb. I've narrowed the cause of this issue down to the above code in our lisp. When manually applying the file paths, ACAD has no problem finding both the .ctb's that we use and the .stb that we need for the client, but when the code is used to apply the paths, ACAD suddenly doesn't see the .stb. This file is being run through the acaddoc.lsp
Any ideas why this is? Is there a different way to approach this issue (while still using lisp)? Any help is greatly appreciated
Solved! Go to Solution.