CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 8852
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedAutomation

 Post Reply Post Reply
Author
mfkozlow View Drop Down
Groupie
Groupie


Joined: 14.Jul.2014
Location: United States
Using: AutoCAD Electrical 2014
Status: Offline
Points: 25
Direct Link To This Post Topic: Automation
    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!
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post 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>>

Back to Top
mfkozlow View Drop Down
Groupie
Groupie


Joined: 14.Jul.2014
Location: United States
Using: AutoCAD Electrical 2014
Status: Offline
Points: 25
Direct Link To This Post 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?


Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,353 seconds.