- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I did some digging around the api (python sdk) to see if there are any "change event" handler classes that could be used for logging changes to Operations and I didn't find any. I did find that you could listen for Setup changes (which is nice) but that's about it.
Perhaps it's ignorance and wishful thinking on my part but is it possible, in script, to be notified when an operation had changed? The only way I can think of, at this time, to do this is to check every interval but we can all agree that's just the worst way to do it. If push comes to shove, I'll might check the operation.operationState property before checking for changes so I'm not forced to check EVERY operation.
I had thought about tying into the adsk.core.DataEvent but this, while it does reduce the frequency of expensive operations, is too broad. That is, the script would have to traverse too many points where things didn't change. It would be SO much simpler to have the Operation base class implement a change event handler method so all the operations could be tracked as things change.
Let me know if I'm missing anything.
Solved! Go to Solution.