slovenc0417 Posted April 9, 2013 Posted April 9, 2013 (edited) I have written the following script. Note that I have used a ";" to indicate "return". The actual script shows a blank. When I drag and drop this script into an open AutoCad file, it works perfectly. However, when I run it in ScriptPro 2.0, it stalls. I add multiple files using the "Add" icon, then I run the script by selecting the "Checked" icon. That's where it stalls. Any thoughts? FILEDIA 0 ZOOM E -PURGE A ; N S _CLOSEALL ; Edited July 16, 2013 by SLW210 Code Tags work! Quote
Tuns Posted July 15, 2013 Posted July 15, 2013 I don't know much about LISP but are you sure that this is written to take care of multiple files at one time instead of only one? If it can do multiple it may just take some time because LISP can only do things step by step unlike java (if I'm not mistaken that is.) Could just be freezing up the program trying to do them all as quick as possible. If it's not anything I guessed then I don't know what it could be. Quote
Tuns Posted July 15, 2013 Posted July 15, 2013 remove the ; and it should work Read a bit closer. He said he was using the ";" to indicate a return so when we look at it we can see it. He didn't actually put those in his code, at least that's what I think he is saying by that. Quote
hmsilva Posted July 16, 2013 Posted July 16, 2013 (edited) I have written the following script. Note that I have used a ";" to indicate "return". The actual script shows a blank. When I drag and drop this script into an open AutoCad file, it works perfectly. However, when I run it in ScriptPro 2.0, it stalls. I add multiple files using the "Add" icon, then I run the script by selecting the "Checked" icon. That's where it stalls. Any thoughts? FILEDIA 0 ZOOM E -PURGE A ; N S _CLOSEALL ; Just remove the "_CLOSEALL", ScriptPro 2.0 will close each dwg by itself. Henrique Edited July 17, 2013 by hmsilva Typo 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.