Detecting UG application environment type
Detecting UG application environment type
(OP)
We are developing a NX Open C++ library for our internal use. The windows based library is to be used by both internal (.exe) and external (.dll) NX client applications.
Is there any way to determine the type of caller client application(e.g. external or internal) from the library such that the error logs or likewise could be directed to NX Dialogs for external clients and log files for internals?
Thank you
Is there any way to determine the type of caller client application(e.g. external or internal) from the library such that the error logs or likewise could be directed to NX Dialogs for external clients and log files for internals?
Thank you





RE: Detecting UG application environment type
UF_ask_application_module
Defined in: uf.h
Overview
Returns the current application module. The value that is returned
maps to a string defined constant. You can find the string in the
header file uf.h. The strings are of the form UF_APP_<module>.
For example, UF_APP_DRAFTING represents the drafting module.
Note - if this function is called from an external program it will
always return a FALSE and an app id of APP_NONE.
Environment
Internal and External
Required License(s)
gateway
int UF_ask_application_module
(
int * module_id
)
Output: The module identification value of the current application.
HTH,
Joe