OPM CE Update 9 C# : How to create C# DLL and configure in workspace so that it should run when workspace loads?

I need to make certain configurations on the system when workspace load, so creating a C# DLL that should reside in workspace and run as soon as the workspace loads in OPM. I have created a C# DLL with KEYIN, but don't know how to configure this DLL in workspace, and this DLL should run when workspace is loading on OPM.

Regards,

Varsha

Parents
  • Hi Varsha,

    I need to make certain configurations on the system when workspace load, so creating a C# DLL that should reside in workspace

    can you provide more details what your application does and what you want to achieve? When "certain configuration" is required, it is a role of workspace/workset, not an application / addin.

    and run as soon as the workspace loads in OPM.

    I agree with this is not "the good wish".

    I see two problems there:

    • Workspace is not "loaded". MicroStation ensures that all configuration files, defining workspace/workset, are processed, when DGN file is loaded.
    • MicroStation is designed to load application "when is defined and necessary" , but in fact, the definition is not precise (in terms of dependency on e.g. specific event).
    and this DLL should run when workspace is loading on OPM.

    The variables, mentioned by Jon, are "standard ways" you can use, depending on the required functionality.

    There are also other variables available (e.g. _USTN_FIRSTDGNFILE), but they are not documented and are used by MicroStation itself.

    With regards,

      Jan

Reply
  • Hi Varsha,

    I need to make certain configurations on the system when workspace load, so creating a C# DLL that should reside in workspace

    can you provide more details what your application does and what you want to achieve? When "certain configuration" is required, it is a role of workspace/workset, not an application / addin.

    and run as soon as the workspace loads in OPM.

    I agree with this is not "the good wish".

    I see two problems there:

    • Workspace is not "loaded". MicroStation ensures that all configuration files, defining workspace/workset, are processed, when DGN file is loaded.
    • MicroStation is designed to load application "when is defined and necessary" , but in fact, the definition is not precise (in terms of dependency on e.g. specific event).
    and this DLL should run when workspace is loading on OPM.

    The variables, mentioned by Jon, are "standard ways" you can use, depending on the required functionality.

    There are also other variables available (e.g. _USTN_FIRSTDGNFILE), but they are not documented and are used by MicroStation itself.

    With regards,

      Jan

Children
No Data