Thanks for the comments.
Those particular Function and Variable prefixes are registered with AutoDesk as part of the ADN symbol registration System. I realise that neither that or the unusual particular form that the names have is any guarantee of uniqueness.
I have seen more unusual names overwritten.
The variables as I use them in production code are also protected from overwriting, something not shown here. The code I use only sets these variables once at startup initialization.
Seven, I don't understand the comments you are making in the code.
What could possibly be simpler and cleaner than an OR statement, in line.
Re the OpenDbxDocument function
The code logic does not lend itself to all being part of a conditional, in my opinion. In my Production code I use an assertion test statement for testing in this case. If the assertion fails, just skip out completely and advise the user of the failure. This particular statement is a preconditional test, not a procedural test.
That being said, I do appreciate the comments, but was looking more for potential flaws in logic and Gotcha's.
Regards
kwb