Jump to content

Recommended Posts

Posted (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 by SLW210
Code Tags work!
  • 3 months later...
Posted

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.

Posted

remove the ; and it should work

Posted
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.

Posted (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 by hmsilva
Typo

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...