Author Topic: Tool to open issue command save and close?  (Read 3994 times)

0 Members and 1 Guest are viewing this topic.

hyposmurf

  • Guest
Tool to open issue command save and close?
« on: September 29, 2004, 03:02:54 PM »
I think I may have seen this before on The Swamp.How would I issue a command to a closed drawing?Or could I have it open the drawing issue the command,save,close and then carryt onto the next drawing.Like for instance you have numerous amounts of drawings that need purging,or XREF's bound,this would be a cool way to complete these tasks rather than manually opening,running the command saving and closing.Script?Lisp?Bit like the batch plotting ,but for other commands to.

M-dub

  • Guest
Tool to open issue command save and close?
« Reply #1 on: September 29, 2004, 03:07:50 PM »
SCRIPT!!!  SCRIPT!!!

This time, I know it will work!  *nod towards eloquintet*

M-dub

  • Guest
Tool to open issue command save and close?
« Reply #2 on: September 29, 2004, 03:08:55 PM »
open C:/directory/drawing1.dwg zoom e qsave close
open C:/directory/drawing2.dwg zoom e qsave close
open C:/directory/drawing3.dwg zoom e qsave close
open C:/directory/drawing4.dwg zoom e qsave close

ronjonp

  • Needs a day job
  • Posts: 7529

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

whdjr

  • Guest
Tool to open issue command save and close?
« Reply #4 on: September 29, 2004, 03:19:54 PM »
ObjectDBX also works, BUT you loose your file preview until the next time you open and close the file the tradition way. :twisted:

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Tool to open issue command save and close?
« Reply #5 on: September 29, 2004, 03:45:59 PM »
I have a proggie called Scriptit .. essentially you select the files you want the script ran on, then you tell the script what to do in the drawing.

I'll send it to you when I get home.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

M-dub

  • Guest
Tool to open issue command save and close?
« Reply #6 on: September 29, 2004, 03:48:46 PM »
Quote from: Keith
I have a proggie called Scriptit .. essentially you select the files you want the script ran on, then you tell the script what to do in the drawing.

I'll send it to you when I get home.


Who? Me?  Sure!   ;)

You're stuff has never let me down in the past, I'm sure this one rocks too!  Is it too big to send to the lily pond?  I don't really need any help making scripts, but anything that would make it faster would be cool.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Tool to open issue command save and close?
« Reply #7 on: September 29, 2004, 04:01:04 PM »
Well, the neat thing about this proggie is that it actually builds the script for you using the files you select, you can select multiple files....I had a client use this proggie several years ago to process several thousand drawings successfully... I haven't tested it with 2004 but it should operate just the same.
Essentially it is point and click, paste the code you want to execute in each drawing and let 'er fly.
For example ... lets say you want to execute ZOOM E in all of your drawings...
In the code section simply enter ZOOM E and select your drawings....
I'll hold your hand with it until you understand it.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hyposmurf

  • Guest
Tool to open issue command save and close?
« Reply #8 on: September 29, 2004, 04:01:55 PM »
Thanks, this looks likes it might be fun if I can run a whole load of srcipts in this way.Now Im off to have a ponder,not used scripts in a while. :shock: Have one problem already  :roll:
open C:/AUTOCAD/Drawings/Kenward House/8220E001.dwg zoom e qsave close
Ive created my sript and bung the above text into my .scr file.But get the following message
"cannot find the specified drawing,please verify that the file exists"
Thought maybe I have my / the wrong way round or do I have to have the drawing in my support file path?
I'd aslo be greatfull please Keith :) .Still wnat to know what Im doing wrong here and get this to work.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Tool to open issue command save and close?
« Reply #9 on: September 29, 2004, 04:12:15 PM »
It won't find it with the space in the path...enclose the drawing name and path in quotes.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hyposmurf

  • Guest
Tool to open issue command save and close?
« Reply #10 on: September 29, 2004, 04:16:14 PM »
Thats all it took,cheers  8)

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Tool to open issue command save and close?
« Reply #11 on: September 29, 2004, 04:23:17 PM »
I'm gonna package the proggie and post it for everyone.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hendie

  • Guest
Tool to open issue command save and close?
« Reply #12 on: September 29, 2004, 05:51:16 PM »
isn't Script Pro included on the install discs anymore ?
btw Scriptit functionality sounds just the same as Script Pro

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Tool to open issue command save and close?
« Reply #13 on: September 29, 2004, 05:52:43 PM »
It is actually a whole lot simpler to work with....IMHO
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie