
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
does anyone know of a supported (work sharing safe) way to obtain the UniqueId of a deleted element within a custom dynamic updater's Execute() method?
You get a list of ElementIds which is nice, but the elements can not be retrieved using Document.GetElement(), presumably because they have already been deleted from the document before the updater is called. The only way I know to obtain the UniqueId is directly from the Element, which I don't have. I need to match the deleted elements against a list of UniqueId strings that I have stored previously. I'll settle for unsupported hacks if need be at this stage, but I want to play nice with work sharing if possible.
UniqueIds are great for most things, but seem to be completely useless in this situation.
Any ideas?
Feature request: Failing a solution to the above, it would be nice if a pair of methods could be added to the DB.Document class that would allow directly converting ElementIds to UniqueId strings and vice versa (and would behave nicely for deleted elements within the updater call).
Call them something like:
- GetElementIdFromUniqueId(ElementId id)
- GetUniqueIdFromElementId(String uid)
Alternatively, providing a list of UniqueIds along with the ElementIds to the UpdaterData object would be handy.
Solved! Go to Solution.