[CONNECT C#] How do I get my Task ID?

I want to get the name of my .NET task ID using C#.  It's a static method...

AddIn.GetMdlTaskID (addInAttribute);

But what is the correct addInAttribute

I'm looking for the .NET equivalent of the MicroStationAPI mdlSystem_getCurrTaskID ().

Parents Reply
  • Glad to see you were able to get the Addin MdlTaskId string property name needed.

    In case you would like a little more context (as originally asked above) on the AddInAttribute class.

    In the devshell type: sdkdocs.  In MSTNPlatformNET.CHM you will see: Bentley.MstnPlatformNET AddInAttribute class being derived from System.Attribute.  This allows developers the ability to provide Addins some additional context (decoration - if you will) to the underlying MDL task management system allowing you to override, provide, or get:

        ApplicationType (e.g. User, DesignApp, Required, Initapp, etc.)
        MdlTaskID (e.g. can be used to provide a "MDL task name" different than your Addin Class name)
        Password (Bentley Passcode attribute string)
        TypeId (internal system id)

    HTH,
    Bob



Children
No Data