TimelineObject.IsSuppressed API does not work in InputChangedEvent

TimelineObject.IsSuppressed API does not work in InputChangedEvent

Melinda1
Participant Participant
464 Views
2 Replies
Message 1 of 3

TimelineObject.IsSuppressed API does not work in InputChangedEvent

Melinda1
Participant
Participant

Hello,

 

I am working on a form that allows users with very little Fusion 360 experience to suppress and un-suppress items in the timeline based on the selections in the form.  I've got the form correctly set up so it is firing an InputChangedEvent whenever the user changes one of the values in the form.  However, when the isSuppressed API (of a TimelineObject) is called during this event, it does not do anything.  The isSuppressed API only seems to work if I call it in the execute event for the command (when the user selects OK on the form).  Has anyone seen this before?  I would very much like the design to dynamically change as the user is filling out the form so they can see the changes they are making.

 

Thank you! 

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

Jorge_Jaramillo
Collaborator
Collaborator
Accepted solution

Hi @Melinda1 ,

 

Yes, only changes made in the execute event or with execute preview event are committed to the model.

 

You can read the objective of the InputChangedEvent here: https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051#InputCh...

 

I believe what you need is to use the ExecutePreviewEvent instead.  Please read what I highlighted in the following image:

Jorge_Jaramillo_0-1697122212874.png

 

This is how it works.

 

Regards,

Jorge Jaramillo

Software Engineer

 

0 Likes
Message 3 of 3

Melinda1
Participant
Participant

Perfect!  Thanks for the clarification - it was exactly what I was missing.

0 Likes