Script Batch plot Problem

I use a scripting program for batch plotting. The problem I'm having is when running the script it comes across an open drawing in the batch; the script doesn't know how to deal with this. The question WOULD YOU LIKE TO OPEN THE FILE READ-ONLY could be answered YES with the first line in the script and it would solve it but when it gets to an unopened drawing having YES as the first command stops it in its tracks.

Here's the script file I'm using

TileMode

0

-PLOT y

Oce TDS400 Roll 1.pc3 ISO A1 (841.00 x 594.00 MM) millimeters Landscape NO Extents FIT Center Yes A1.ctb Yes No No No No No Yes

I don't know much about LISP but maybe a bit of code at the start could solve it.

Thanks Mik

Reply to
Mik
Loading thread data ...

Assuming you are in MDI mode, the following bit of code should open the = drawing regardless of whether it's currently open or not.=20

(vlax-invoke-method (vlax-invoke-method (vlax-get (vlax-get-acad-object) = "Documents") "Open" "X:\\MyPath\MyDrawing.dwg") "Activate")

Reply to
R.K. McSwain

Thanks for the quick reply. But it doesn't seem to work!

Reply to
Mik

Works here. What version of AutoCAD?

Reply to
R.K. McSwain

ADT 3.3 I think the problem is that the script running program concerns itself with opening the drawings, so by the time the code kicks in its already too late.

Reply to
Mik

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.