Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback Documentation Question: ElementHandle::FdinById()

$
0
0
FindById by default returns an invalid EditElementHandle if the id references a deleted ElementRef (in memory). There's not much reason to create an EditElementHandle for a deleted element, since you won't be able to modify it, and EditElementHandles exist for modification, so that probably why it's a method on EditElementHandle.

Normally you don't end up with element ids of deleted elements, but the dependency callbacks are a special case. There's also no reason why you can't use EditElementHandle::FindById though, you can pass it into a method that wants and ElementHandle, etc.

-B

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>