Hi,
when studying CONNECT Edition C++ API (but this question is valid for V8i API also), I met MissingHandlerPermissions enum.
I am not quite sure I understand why this construction exists and when it's wise to use it. The description is An element handler can use these flags to specify what MicroStation can do with the element when the handler is not available. My assumption (looks like naive) is that when the handler is not available, nothing can be done. But maybe I wrongly understand what means "the handler is not available".
Thanks in advance for any comments and explanations,
Jan
Jan Šlegr said:when it's wise to use it
Pretty much never. Have you written a handler for which you're concerned about missing handler permissions?
"handler not available" means the application that supplies the handler code is not loaded.
Hi Paul,
thanks for fast answer!
Paul Connelly said:Pretty much never.
I like such answer :-)
Paul Connelly said:Have you written a handler for which you're concerned about missing handler permissions?
No, I found this enum in some older code snippet from Brien and I was surprised such permission exists.
Paul Connelly said:"handler not available" means the application that supplies the handler code is not loaded.
Ok, it makes sense now. Because typically we (outside Bentley) work with MicroStation element handlers only, we can expect "a handler owner" will be always available. So there is no reason to care too much about not available handler.
Thanks again,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point