Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

I must plot over 500 files and make 7 copies of each .dwg file

I think this way it will be easier

Posted

>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

Posted

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

Posted
Command: (load "PlotDwgs")(PlotDwgs)

; error: LOAD failed: "PlotDwgs"

Rename file PlotDwgs change VVA.lsp to PlotDwgs.lsp

Posted

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?

 

Posted

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

Posted
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...

 

moz-screenshot.jpgmoz-screenshot-1.jpg

 

 

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.:cry:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...