Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I automatically issue a 'Resume' command if the script fails?

3 REPLIES 3
Reply
Message 1 of 4
mdhutchinson
612 Views, 3 Replies

How can I automatically issue a 'Resume' command if the script fails?

How might I automate issuing 'RESUME' in a script if the script fails?

3 REPLIES 3
Message 2 of 4
BlackBox_
in reply to: mdhutchinson

There's obviously a reason why the Script failed, so to programmatically 'resume' could put you in an endless loop.



"How we think determines what we do, and what we do determines what we get."

Message 3 of 4
mdhutchinson
in reply to: BlackBox_

If the script has failed... then RESUME command would continue with the next line - INDEED... the next line after the line which failed. The whole point in scripts is so you can let it run - uninteripted - as well as not baby sat. This is a great place to use FileLogOn at the start of a script... so you can investigate the point of the failure.

 

capeesh?

Message 4 of 4
dgorsman
in reply to: mdhutchinson

Scripts have no user input or error handling, so if something fails bad things can happen.  The script could be continuing forward from a state where you expect it to work, but instead its issuing E;ALL;SAVE;CLOSE or simply firing off unknown options to one of the looping commands.

 

If you want more complex handling of error conditions, you will need to switch to something other than scripting.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost