how to terminate a script
All  1-5  6-9

Previous
Next
 From:  pressure (PEER)
10847.6 In reply to 10847.5 
Michael,

Thanks for explaining "// config: norepeat". I saw that at the top of a few scripts and wondered what it was about. What does this do?
// config: norepeat noautolaunch

I guess "// config: norepeat" should be at the top of every script that can create an alert triggered by a problem encountered by the script.

I'll keep your segmentation violation tip in mind in case I'm ever in that pickle again, but hopefully I'll be able to avoid it with everything else you've shared.

I haven't done anything with pickers or event loops yet, but I'll try out your suggestions.

- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10847.7 In reply to 10847.6 
Hi Peer,

> What does this do?
> // config: norepeat noautolaunch

The no autolaunch is for when a command set is launched. A "command set" is a group of commands like Draw curve > Lines is a command set that has 2 commands in it (Line, Polyline).

When you open a command set (like click on Draw curve > Lines), the last used command will automatically start unless it's marked with "noautolaunch" which should be set on a command that just does its action immediately like Boolean Union for example.


I think I'll set it up so that if an alert dialog is launched it will automatically clear out the Repeat checkbox to help avoid getting stuck like this.

Thanks,
- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pressure (PEER)
10847.8 In reply to 10847.7 
Michael,

Thanks for explaining noautolaunch. I looked at BooleanUnion and Lines.xml and see what you mean. It didn't occur to me that a command set is a thing. Also, it's nice to know that I can repeat a command by hitting Enter. I only knew about right click.

I like your idea of clearing the Repeat checkbox.

- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 10847.9 deleted 24 Feb 2023 by MICHAEL GIBSON
 

Reply to All Reply to All

 

 
 
Show messages: All  1-5  6-9