Is there a WorkSet variable so only specific versions of ORD can open project files?

Being that we can now have multiple versions of ORD installed and many of us are working on different projects with different versions of software, is there a way to set a config file to check if the user is opening the file with the correct software, and if not, have an error window pop-up? 

I have a dynamic managed workspace set up and there is code in the WorkAreaPWSetup_Predefined_*.cfg:

"%if defined (_VERSION_8_11)" and "%elif defined (_VERSION_10_0) " so is there a way to narrow down the version further by adjusting these variables?

  • You can differentiate different versions of OpenRoads Designer using the Product - Full Marketing Name

    OpenRoads Designer 2020-R2 (version 10.08.01.33) = _USTN_PRODUCT_FULLMARKETINGNAME = OpenRoads Designer CONNECT Edition - 2020 Release 2

    OpenRoads Designer 2020-R3 (version 10.09.00.91) = _USTN_PRODUCT_FULLMARKETINGNAME = OpenRoads Designer CONNECT Edition - 2020 Release 3

    OpenRoads Designer 2021-R1 (version 10.10.01.03) = _USTN_PRODUCT_FULLMARKETINGNAME = OpenRoads Designer CE - 2021 Release 1

    You have to make sure you are showing the hidden variables (under_score variables) using _USTN_DISPLAYALLCFGVARS = 1 in your configuration settings when checking/setting these variables

    If using ProjectWise, I think you can assign specific versions of product to your managed workspaces

    Each product/version can be defined using a unique product key "Program Class Name" (I typically run a -debug to capture the key information)

    I do not have a complete list (not sure if Bentley publishes... it would be nice!)

    I will attach a spread sheet where I started to track/document the Program Class Names as I needed/used them.

    HTH

    Bentley - Program Class Names - 20200820.xlsx

    Answer Verified By: Jennifer Miedema 

  • Hi David,

    This is very helpful, thank you! I'll test out some code to see if I can get the workset to accept/reject opening the file based on version and if/when I get something working will post the code in this thread :)

  • Ok, I think I've got it! Added this code to a workset config file:

    %if $(_USTN_PRODUCT_FULLMARKETINGNAME) != "OpenRoads Designer CONNECT Edition - 2020 Release 3"
        MS_READONLY = 1
        #%error This WorkArea requires OpenRoads Designer CONNECT Edition - 2020 Release 3 to open this file
    %endif
     

    Ran a test. Opens perfectly in OpenRoads Designer CONNECT Edition - 2020 Release 3 and as read-only in OpenRail Designer CE - 2021 Release 1

    I left the commented out error code in there, just in case someone doesn't want the file to open as read-only in other software.

    Thank you again for your help!

    Answer Verified By: Jennifer Miedema 

  • Thank you for this information! This worked for me for ORD 10.12... rather, "OpenRoads Designer CE 2022 Release 3". 
    Would anyone by chance have the Full Marketing Names for OpenBridge Designer 10.12 and OpenBridge Designer 10.12 to be similarly allowed? I believe the names might be "OpenRoads Designer CE 2022 Release 2" and "Open Bridge Modeler CE 2022 Release 2" but can anyone confirm? I can't run a debug to find out the names, so I'd be taking shots in the dark otherwise. 

  • You can check any configuration variables being set (by program or workspace) by viewing the Configuration Variables:
    File > Settings > Configuration > Configuration Variables

    You have to make sure you are showing the hidden variables (under_score variables) using _USTN_DISPLAYALLCFGVARS = 1 in your configuration settings when checking/setting these variables

    As far as I know, OpenBridge Modeler is the only program in OpenBridge Designer that need access to a workspace?
    OpenBridge Designer = OpenBridge Modler+LEAP Bridge Concrete + LEAP Bridge Steel + RM Bridge

    Here is what I have been using for the OpenBridge Modeler versions:

    OpenBridge Modeler 2022-R2 (v10.12.01.83) = _USTN_PRODUCT_FULLMARKETINGNAME = "OpenBridge Modeler CE - 2022 Release 2"

    OpenBridge Modeler 2022-R1 (v10.11.00.310) = _USTN_PRODUCT_FULLMARKETINGNAME = "OpenBridge Modeler CE - 2022 Release 1"

    OpenBridge Modeler 2021-R2 (v10.10.20.91) = _USTN_PRODUCT_FULLMARKETINGNAME = "OpenBridge Modeler CE - 2021 Release 2"

    OpenBridge Modeler 2021-R1 (v10.10.00.05) = _USTN_PRODUCT_FULLMARKETINGNAME = "OpenBridge Modeler CE - 2021 Release 1"

    OpenBridge Modeler - Update 9 (v10.09.00.70) = _USTN_PRODUCT_FULLMARKETINGNAME = "OpenBridge Modeler CONNECT Edition - Update 9"

    In order for OpenBridge Modeler (running inside of OpenBridge Designer) to see your workspaces, you need to add this variable:
    (I add it to the icon): OBM_PARAMS=<location of your workspaces>

    For OpenBridge Designer, I do see _USTN_BENTLEYROOT = C:\Program Files\Bentley\OpenBridge Designer CE 10.12.1\
    (This is being defined as a System variable) (This would be unique to this version of OpenBridge Designer)