
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone.
I have questions and problems. I have a Dictionary mapping uniqueIDs to area measures, it is initialized when a document is opened, and updated when a new element is added or modified.
But I am really struggling to update it when a deletion is made, as the ElementId is returned, not the uniqueID.
I have tried to use ElementIDs then to identify my elements, as the program does only take into account the actual document, I believe this should be OK. But another problem appears now. Some ElementIDs seem to be modified at some point:
As you can see, the ElementID does not match, it seems to be modified (I am deleting the correct element in the project).
I've come across old posts (https://forums.autodesk.com/t5/revit-api-forum/get-uniqueid-of-deleted-element-within-dynamic-update... and https://forums.autodesk.com/t5/revit-ideas/provide-more-information-about-deleted-element-ideally-a-... ) but they don't seem to be solved yet.
Thus, my questions are the following:
- Do UniqueIDs change along time?
- Is there now any way to retrieve the UniqueID on deletion?
- The difference of 2 in the IDs means anything at all?
- Am I being silly and this should be trivial? 😂
Thanks in advanced!
Jose Antonio Lorencio Abril
Solved! Go to Solution.