How to disable execute preview event for selection input?

How to disable execute preview event for selection input?

Anonymous
Not applicable
568 Views
2 Replies
Message 1 of 3

How to disable execute preview event for selection input?

Anonymous
Not applicable

Is it possible to disable this event when selection input has changed? In my command no need recalculate preview, if user has selected additional faces.

0 Likes
569 Views
2 Replies
Replies (2)
Message 2 of 3

ekinsb
Alumni
Alumni

If you're creating a preview of any kind, then you're committing to create that preview for any change in command input.  You can't create a preview and then maintain that same preview through multiple changes of input.  You can create simpler results in the executePreview and then create the full results in the execute event.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 3

Anonymous
Not applicable
I think if any change in model, which programmer make in the command was not aborted after end of the any events, except execute event, and destroy event. Where they were to commited or aborted. It will be best solution for API. And would give more opportunities for programmers.
0 Likes