Application still executes after escaping.

Application still executes after escaping.

Anonymous
Not applicable
850 Views
3 Replies
Message 1 of 4

Application still executes after escaping.

Anonymous
Not applicable

Hello Everyone, 

In the place I work we use an old application to create duct transitions. It seems to have a single flaw. When user starts it and enter all parameters, and for some reason at this point decide to cancel the execution, the geometry still appears and is snapped to the origin. 

 

It's easy to omit that, and later it turns out some garbage remains.

 

Is it possible to modify the program so that the geometry only appears in the model space when the left mouse button is presses at selected location?

 

I have attached the code.

Many thanks in advance for any support.

0 Likes
Accepted solutions (1)
851 Views
3 Replies
Replies (3)
Message 2 of 4

zph
Collaborator
Collaborator
Accepted solution

Try the attachment.

 

After you supply all the data, you'll be given this option at the command line:

"Click to generate linework. ESC to cancel."

 

Click anywhere in the drawing and the line work will generate.  If you press ENTER or ESC, your routine will exit and no line work will be generated.

 

I hope this helps 🙂

~Z

 

Message 3 of 4

Anonymous
Not applicable

This is perfect, thanks again!

0 Likes
Message 4 of 4

zph
Collaborator
Collaborator

You're welcome.  Cheers!

 

0 Likes