chelsea1307 Posted June 17, 2009 Posted June 17, 2009 is there a way to open multiple dwgs freeze specified layers and run a lisp i already have? Quote
bsamc2000 Posted June 17, 2009 Posted June 17, 2009 The short answer is yes. What are you programming in .Net, VBA Lisp? Quote
chelsea1307 Posted June 17, 2009 Author Posted June 17, 2009 im trying to learn lsp at the moment. taking some time though. I have 2 lisps that i need to run on one set of drwgs and 5 layers i need frozen on another set of dwgs. I was pretty sure it could be done but i have no idea how Quote
chelsea1307 Posted June 17, 2009 Author Posted June 17, 2009 I really need a way to open and freeze specified layers, ive gone through the first set and ran my two lisps, the second set is about 3 times as much. Quote
chelsea1307 Posted June 17, 2009 Author Posted June 17, 2009 wrote a quick lsp to freeze layers. pretty stuck on being able to run it on multiple dwgs. Quote
JeepMaster Posted June 17, 2009 Posted June 17, 2009 Short answer is use programs like ScriptPro to run your lisp and freeze commands to all your drawings. Quote
JeepMaster Posted June 17, 2009 Posted June 17, 2009 Here's a very quick tutorial for using ScriptPro. Just download it from Autodesk if you don't already have ScriptPro. http://www.lazydrafter.com/autocad-tips/scriptpro/ Quote
chelsea1307 Posted June 17, 2009 Author Posted June 17, 2009 thanks for the link i searched it and got some funky results. Quote
fuccaro Posted June 18, 2009 Posted June 18, 2009 There is a way to run a lisp on several folder -without script files. Make the lisp to start automatically when a drawing is opened (you may use the Startup suit). Go to AutoCAD, click the File > Open and in the opened window select all the files to be processed. Press the open button and watch the screen. Quote
Zorg Posted June 18, 2009 Posted June 18, 2009 I think Hurricane for autocad will do this for you! Quote
VVA Posted June 18, 2009 Posted June 18, 2009 OpenDwgsCmds- Executes commands and functions on all open drawings. The CDC function, Current Drawing Commands, allows you to test these commands and functions on the current drawing. The ODC function, Open Drawings Commands, executes these commands and functions on all open drawings. There are several programming utilities included Quote
JeepMaster Posted June 18, 2009 Posted June 18, 2009 VVA, That's a cool and clean way of using lisp. I'll have to try that sometime. The problem I see is if I have to run it to over 100 drawings at a time, it will take up all the resources of my machine just to open them up and will take forever to do anything. It would be great if I only need to do the lisp to 20 or so drawings. I personally use SuperScript as it's much faster then scriptpro since it doesn't open and close autocad for each dwg. Quote
BIGAL Posted June 19, 2009 Posted June 19, 2009 Opening 100+ even thousands of drawings is not a problem just close and save each one after you have run your lisp program in the script you only then have maybe 2 open ? Open mydwg runmylisp Close Y Run it overnight if time is a problem you will be suprised how quick it will do it though if there is no interaction required. repeat as required Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.