UpdaterRegistry.AddTrigger() is disabled to called from the Updater
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
The UpdaterRegistry.AddTrigger() API method is disabled to be used inside of a Dinamic Model Updater (DMU). Updater throws an exception when you try to use this function. This is the message "This method may not be called during dynamic update."
Our ElementUpdater is added to listen to additions of specific categories. After these elements are added our ElementUpdater wants to add triggers to specific parameters for that element. It is not possible to do that in the updater. At the moment we do it in the Idling command where it is possible to add the trigger. This results in multiple actions in the Revit log. So when a user then wants to rollback changes it's very messy because for this one action, he needs to do 2 rollbacks. This results in multiple errors.
Is it possible to open up the DMU just like the idling command?
I can provide some code or a project if the issues is not clear.
Thank you in advance!
Gill Gonnissen