Possible Error/Bug in Document.Delete() - (Revit 2017)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Folks,
I think I just stumbled upon an error in Document.Delete().
According to this: http://www.revitapidocs.com/2017/a0461dd1-71d9-4581-1604-2ef8c211dd60.htm Document.Delete() should return the set of deleted elements.
In the following scenario, it seems to return incorrect information.
If a user calls Document.Delete() with a list containing a single element (or more perhaps, I haven't tested) that is owned by another work-sharing user, we get the familiar popup explaining that the element cannot be modified. That much is good. The problem arises when the user then cancels out of that dialog. Document.Delete() returns a list with the Element Id of the element that could not be deleted.
I'd expect in this specific case that the returned list of Element Ids would be empty, no?
Thanks for any input!
-Greg-