Feature Request: entityChanged event

Feature Request: entityChanged event

OceanHydroAU
Collaborator Collaborator
462 Views
1 Reply
Message 1 of 2

Feature Request: entityChanged event

OceanHydroAU
Collaborator
Collaborator

I'd like my add-in to receive an event every time any entity changes - perhaps Fusion360 can build a list of entityTokens every time it's working, then when it's finished, trigger this event to any listening add-ins passing the list - so they can quickly check if any of those tokens are related to things it cares about... thus letting us go fully parametric, with only the barest minimum Fusion360 dev effort needed 🙂

 

Failing that - does anyone know if our add-ins can make use of the Event() base class?

 

 " Objects can have several Event properties that fire when some 'event' occurs. Clients can attach Event Handlers to one or more Events and they get notified when the 'event' occurs. "

 

Maybe there's already some way to hook something when things change and accomplish this ourselves?

463 Views
1 Reply
Reply (1)
Message 2 of 2

OceanHydroAU
Collaborator
Collaborator

Update: it seems like the adsk.core.ApplicationCommandEventHandler receives sufficient calls that we can interrogate the arguments to looks for what we need that way... probably not the most efficient solution (Fusion 360 will have to run python code on *every* user action) - but probably going to work.

 

A dedicated entityChanged() event would still be a great idea, so when developers start building parametric add-ins, they use this feature which will thus prevent slowing-down the Fusion360 UI unnecessarily (because the fast internal Fusion360 C implementation can quickly check if the add-in cares about any entity that changes, instead of the add-in having to check every entity it monitors for any change on every user action...)

0 Likes