kakarot Posted August 28, 2009 Posted August 28, 2009 Hi I'm trying to run Terry Miller's PlotDwgs routine. I adjusted the code acording the instructions in file but I keep getting these messages: Unknown command "I". Press F1 for help. Unknown command "L". Press F1 for help. Unknown command "N". Press F1 for help. Unknown command "E". Press F1 for help. Unknown command "F". Press F1 for help. Unknown command "C". Press F1 for help. Unknown command "Y". Press F1 for help. Unknown command "MONOCHROME.CTB". Press F1 for help. Unknown command "Y". Press F1 for help. and I also get this one: Cannot find the specified drawing file. Please verify that the file exists. I'm bit confused because I can't find anything in AutoCAD and VLISP help files. Could anyone help me out with this one? I'm quite new in LISP programming Thanks Quote
JeepMaster Posted August 28, 2009 Posted August 28, 2009 Why don't you just use PUBLISH to batch print dwgs? Unless you have something else you wanted it to do specifically. It seems to do similar things. Quote
kakarot Posted August 28, 2009 Author Posted August 28, 2009 I must plot over 500 files and make 7 copies of each .dwg file I think this way it will be easier Quote
kakarot Posted August 28, 2009 Author Posted August 28, 2009 Sorry I almost forgot the file PlotDwgs - Notepad.pdf Quote
gilsoto13 Posted August 29, 2009 Posted August 29, 2009 SorryI almost forgot the file There are 5 or 6 batch plotting lisp files that I need to check... Here you can download them and test em... let me know if any one works ok... http://www.freecadapps.com/swcategory.php?page=category&offset=0&value=ACG-ARX&archive2=1&orgvalue=ACG http://www.freecadapps.com/swcategory.php?archive2=1&offset=15&orgvalue=ACG&page=category&value=ACG-ARX Quote
VVA Posted August 30, 2009 Posted August 30, 2009 >kakarot I think you use a localized version of AutoCAD. In localized versions of English names to the commands and their options to use the symbol "_". For example: (command "PSPACE") -> (command "_PSPACE") or (command "LAYOUT" "S" Layout $) -> (command "_LAYOUT" "_S" Layout$). I adapted to plotdwgs.lsp for localized versions. Add more links to the original: http://web2.iadfw.net/terrycad/AutoLISP-Code.htm http://autolisp-exchange.com/Forums/Forum3/F3P1.htm PlotDwgs change VVA.zip Quote
kakarot Posted August 31, 2009 Author Posted August 31, 2009 I'm bit closer to actually print smth using your adjustments but now i get: Command: PD Plot Drawings Command: Select a drawing in a folder to Plot Folder: Command: Multi-select Drawings to plot: Command: FileOpen Enter name of drawing to open : "E:\POSAO\multiprint\EPS-011-01.dwg" Opening an AutoCAD 2004/LT 2004 format file. Substituting [simplex.shx] for [cyrillic1.shx]. Substituting [simplex.shx] for [hrOMANS.shx]. Regenerating model. Command: Command: ; error: bad character read (octal): 6 AutoCAD menu utilities loaded.; error: bad function: "undefine" Command: (load "PlotDwgs")(PlotDwgs) ; error: LOAD failed: "PlotDwgs" Command: QSave Command: FileOpen Enter name of drawing to open : "E:\POSAO\multiprint\EPS-011-02.dwg" Opening an AutoCAD 2004/LT 2004 format file. Substituting [simplex.shx] for [cyrillic1.shx]. Substituting [simplex.shx] for [hrOMANS.shx]. Regenerating model. Command: Command: ; error: bad character read (octal): 6 AutoCAD menu utilities loaded.; error: bad function: "undefine" Command: (load "PlotDwgs")(PlotDwgs) ; error: LOAD failed: "PlotDwgs" Command: QSave Command: FileOpen Enter name of drawing to open : "E:\POSAO\multiprint\EPS-011-03.dwg" Opening an AutoCAD 2004/LT 2004 format file. Substituting [simplex.shx] for [cyrillic1.shx]. Substituting [simplex.shx] for [hrOMANS.shx]. Regenerating model. Command: Command: ; error: bad character read (octal): 6 AutoCAD menu utilities loaded.; error: bad function: "undefine" Command: (load "PlotDwgs")(PlotDwgs) ; error: LOAD failed: "PlotDwgs" Command: QSave Command: FileOpen Enter name of drawing to open : "E:\POSAO\multiprint\EPS-011-01.dwg" Opening an AutoCAD 2004/LT 2004 format file. Substituting [simplex.shx] for [cyrillic1.shx]. Substituting [simplex.shx] for [hrOMANS.shx]. Regenerating model. Command: Command: ; error: bad character read (octal): 6 AutoCAD menu utilities loaded.; error: bad function: "undefine" Command: (load "PlotDwgs")(RefreashPlotDwgs) ; error: LOAD failed: "PlotDwgs" Command: (_CmdMsg "Plot Drawings complete.") ; error: no function definition: CMDMSG etc... I guess I'll have to pass some more tutorials before I'll be able to make this work Thanks anyway Quote
VVA Posted August 31, 2009 Posted August 31, 2009 Command: (load "PlotDwgs")(PlotDwgs); error: LOAD failed: "PlotDwgs" Rename file PlotDwgs change VVA.lsp to PlotDwgs.lsp Quote
kakarot Posted September 1, 2009 Author Posted September 1, 2009 I feel such a moron now! Thanks a lot Quote
kakarot Posted September 1, 2009 Author Posted September 1, 2009 Hi! I get now: error: no function definition: VLAX-GET-ACAD-OBJECT I'm trying to handle this error with vl-catch-all-apply but it's catchy for me to use this because I'm just a beginner. Coul'd it be possible to use some function that will force VLAX-GET-ACAD-OBJECT to load instead of handling an error when it alerady happens? Quote
kakarot Posted September 1, 2009 Author Posted September 1, 2009 Got it! insert an (vl-load-com) before the line with (vlax-get-acad-object) to make sure that ActiveX is loaded. I hope this will be useful to someone. PlotDwgs.zip Quote
kakarot Posted September 1, 2009 Author Posted September 1, 2009 There are 5 or 6 batch plotting lisp files that I need to check... Here you can download them and test em... let me know if any one works ok... I downloaded almost 20 routines from those links. I did try to run them, and only 2 or 3 of them were ok but didn't do the work for me. I'll post a list later couse my boss i bugging me rightnow PS. Sorry for the links. I'm not allowed to post them yet. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.