Hi all,
I want to create a LISP file to convert drawings from CTB to STB.
This can be done by the follwing command:
(command "convertpstyles" "xxxxx.stb")
My problem is that I can only specify .stb files that are located in the plot file table search path (in my case this is "C:\Users\xxxxx\appdata\roaming\autodesk\autocad 2012 - english\r18.2\enu\plotters\plot styles").
I can not specify an .stb file that is located in another folder, or even in a subfolder of the search path.
Is there a way of specifying the full path of the .stb file in the Lisp call?
I've tried the following, but without succes:
(command "ConvertPstyles" "c:/Users/...../plot styles/STB files/Conv2STB.stb")
Thanks
Solved! Go to Solution.
Solved by dicra. Go to Solution.
If your file is located in "C:\Users\xxxxx\appdata\roaming\autodesk\autocad 2012 - english\r18.2\enu\plotters\plot styles\STB files\Conv2STB.stb"
I think that you need to start location from folder which is in "plot styles"
(command "ConvertPstyles" "STB files/Conv2STB.stb")
Hello,
your suggestion works, my drawings get converted from CTB to STB!
Thanks!
I wonder though if there is a way to acces .stb files that are located in a different folder (not a sub folder).
For example, if my .stb file is placed in the folder C:\ACAD\plot styles\Conv2STB.stb is there a way to acces this file through the LISP command (without having to add this folder to my plot style table search paths)?
Your LISP could modify the search path, do the operation, then restore it.
@bouwenb wrote:Hello,
your suggestion works, my drawings get converted from CTB to STB!
Thanks!
I wonder though if there is a way to acces .stb files that are located in a different folder (not a sub folder).
For example, if my .stb file is placed in the folder C:\ACAD\plot styles\Conv2STB.stb is there a way to acces this file through the LISP command (without having to add this folder to my plot style table search paths)?
bouwenb
I hope this is not to late for you,
I did not test this, but I think that you suppose to do something like this:
(setq oldpath (getenv "PrinterStyleSheetDir"))
(setenv "PrinterStyleSheetDir" "your path")
(command "ConvertPstyles" "Conv2STB.stb")
if you like to return old path:
(setenv "PrinterStyleSheetDir" oldpath)