Print Page | Close Window

Automation

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10630
Printed Date: 25.May.2026 at 14:15


Topic: Automation
Posted By: mfkozlow
Subject: Automation
Date Posted: 18.Aug.2014 at 19:41
Hello everyone!

I was wondering if there exists a lisp that can open files and run other lisps on these files.

For example, I would like to be able to type a command and for that command to go and open another drawing and run another lisp on it.

So to clear things up... I only want to type the command at the first file, but I would like it to open the second file and run other lisps within the second file (possibly even open more files). The reason I want this done is because I want zero user interaction. Let me know of any ideas/suggestions you may have. Thanks!



Replies:
Posted By: John Connor
Date Posted: 18.Aug.2014 at 23:18
Maybe try a script?  I think scripts can call lisp routines.  They certainly can be used to batch process a folder full of drawings.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: mfkozlow
Date Posted: 19.Aug.2014 at 14:51
I tried the following script: (the OPEN_003 is a lisp that opens a drawing file that ends with "E003" & the GET_ATT is a lisp to retrieve a specific attribute from a block)

FILEDIA 0
ZOOM
E
GET_ATT
OPEN_003
ZOOM
E
GET_ATT
QUIT


When the above is ran, everything is done to the file that is opened initially. What I want is for the script beneath "OPEN_003" to run on the newly opened drawing. Is there a way to do this?





Print Page | Close Window