Revit's UI language and identifiying transaction in DocumentChanged event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all,
We need to "listen" to certain document-level activities, like "Paste", "Component" (place family instance), "Load Family" and so on. We do that in DocumentChanged event handler.
As far as we know, the only way to identify what-operation-just-took-place is to check for transaction-names returned by GetTransactionNames() of DocumentChangedEventArgs in DocumentChanged event. There doesn't seem to be an enum or kind.
One of the biggest issues with going by textual transaction names is that, it changes with on Revit's ui language (Russian, Chinese, etc).
We certainly want to cater to non-English Revit installations as well.
Did anyone encounter this earlier? What is best way to handler this?
Any solution or reference to right direction would be a great help.
Thanks in advance!
Best regards,
Kinjal.
Fullstack developer @ Dwaravati
Delivering high quality programmatic boosts for your already beautiful Revit
