Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change files in directory

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
142 Views, 2 Replies

Change files in directory

I have got a couple of drawings that I want to change in the same dir. Is there a possibility to open these drawings, run a script, close the drawing and do also to the rest of the drawings in this dir?

I already have a script that makes a list of files of the dir. but when I open a drawing the current drawing closes and the script stops. So every drawing I have to start the script again.

Thanx, eddy.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Create a utility to write a script to run a function LISP, and the have the script continue. You're actually doing it backwards. "e.barelds@beenen.nl" wrote in message news:5485336.1079103600385.JavaMail.jive@jiveforum1.autodesk.com... > I have got a couple of drawings that I want to change in the same dir. Is there a possibility to open these drawings, run a script, close the drawing and do also to the rest of the drawings in this dir? > > I already have a script that makes a list of files of the dir. but when I open a drawing the current drawing closes and the script stops. So every drawing I have to start the script again. > > Thanx, eddy.
Message 3 of 3
Anonymous
in reply to: Anonymous

Hi Eddy, You can use a batch file to launch AutoCAD, open one drawing and run a script, then Save and exit AutoCAD and re-start all over again using the batch file. This way I get over the problem of a script losing control while processing multiple drawings. The other options are to write an ActiveX based Lisp program that will works with multiple drawings but that needs programming to be done. I have attached a script, batch file and an acad.lsp file to help you get started. You will need to make necessary changes to them to add your statements. Let me know if you have questions. Regards Rakesh e.barelds@beenen.nl wrote: > I have got a couple of drawings that I want to change in the same dir. Is there a possibility to open these drawings, run a script, close the drawing and do also to the rest of the drawings in this dir? > > I already have a script that makes a list of files of the dir. but when I open a drawing the current drawing closes and the script stops. So every drawing I have to start the script again. > > Thanx, eddy. -- AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report