Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum Changes in ..\apps\PW.cfg between Ss2 and Ss4 causing workspace issues.
    • Sign In

    • State Not Answered
    • Replies 8 replies
    • Subscribers 60 subscribers
    • Views 1588 views
    • Users 0 members are here

    Changes in ..\apps\PW.cfg between Ss2 and Ss4 causing workspace issues.

    caddcop
    Offline caddcop over 3 years ago

    We bagan taking advantage of the mcm.user.cfg file to implement some settings that we used to have to place within the product CFG folders. This made it possible for non-administrators to modify and implement workspaces.

    Recently we began preparing for the retirement of Power InRoads V8i Ss2 and it replacement with Power InRoads V8i Ss10. What we found was that essentially identical workspaces in the two platforms were functioning differently and traced the issue to a difference in the PW.CFG file in the APPL folder of the two products. The Ss10 version had an extra %elseif block that resulted in the mcm.user.cfg file being processed while the Ss2 version, without that block never read that file and therefore missed out on its important variable assignments.

    Does anyone know why these would be different and if a fresh installation of PW would correctthis?

    • Sign in to reply
    • Cancel
    Parents
    • Kevin van Haaren
      0 Offline Kevin van Haaren Thu, Jun 18 2020 10:53 PM

      We don't have Power InRoads SS2 but we do have MicroStation SS4 + InRoads SS2 and Power InRoads SS10 on a testing machine on it. ProjectWise 10.00.03.329 installed.

      The PW.cfg between the 2 is identical, however neither loads the mcm.user.cfg directly. Instead they both load the same mcm.cfg in the Program Files\Bentley\ProjectWise\Bin directory then that mcm.cfg loads the mcm.user.cfg. Actually it'll load 3 different mcm.user.cfg if it can find them.

      Here's how mcm.cfg loads the different mcm.user.cfg files:

      %include $(PWDIR)bin/mcm.user.cfg
      
      %if exists ($(ALLUSERSPROFILE)/Bentley/ProjectWise/Configuration/mcm.user.cfg)
        %include $(ALLUSERSPROFILE)/Bentley/ProjectWise/Configuration/mcm.user.cfg
      %else
        PW_ALLAPPDATA=${ALLUSERSPROFILE}/Application Data
        %if exists ($(PW_ALLAPPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg)
          %include $(PW_ALLAPPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg
        %endif
        %undef PW_ALLAPPDATA
      %endif
      
      %if exists ($(LOCALAPPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg)
        %include $(LOCALAPPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg
      %else
          %if exists ($(APPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg)
              %include $(APPDATA)/Bentley/ProjectWise/Configuration/mcm.user.cfg
          %endif
      %endif
      
      %endif
      

      Couple of possibilities pop to mind:

      1. The Power InROADS SS2 PW.cfg is old and the installer didn't support that version so didn't replace it
      2. Both Power SS2 and SS10 pw.cfgs were manually modified and at the last install of PW weren't replaced by the installer
        1. Bentley ProjectWise installers tend to leave manually modified files in place and not replace them when a new version is installed

      Shouldn't have to do a complete uninstall/reinstall. Honestly just replace the pw.cfg in both with the one from Program Files (x86)\ProjectWise\Bin. That file is the only thing that integrates MicroStation based products with ProjectWise. Replacing it with the one from the program directory is pretty much what uninstall/reinstall is supposed to do.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • caddcop
      0 Offline caddcop Fri, Jun 19 2020 9:49 AM in reply to Kevin van Haaren

      This is my Power InRoads Ss2 PW.cfg. The %if %endif block from lines 38 to 45 fail in Ss2. The lines 44 through 47 in the Ss10 version (see further down) are the lines that will not fail, if I use the Ss10 version in Ss2.

      While this is my Ss10 version

      The Accessed date on both matches the date that I installed Power InRoads Ss10 and I believe I ran a repair on ProjectWise, since it was installed while Ss4 was installed.


      Charles (Chuck) Rheault
      CADD Manager

      MDOT State Highway Administration

      • MicroStation user since IGDS, InRoads user since TDP.
      • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Mick Inkster
      0 Offline Mick Inkster Fri, Jun 19 2020 3:12 PM in reply to caddcop

      Hi Chuck,

      From my testing registryread is not recognized in earlier versions of the software (before connect, although I haven't tested Ss10) and was only recently added to the list of commands that cfg files could handle.
      AFAIK, the PWDIR variable is typically passed from the ProjectWise application on launch so would only be used if not launching from the explorer window. See below image

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • caddcop
      0 Offline caddcop Sat, Jun 20 2020 11:38 AM in reply to caddcop

      If I put the Ss10 version on my PC, it works, but modifying file in the Program Files (x86) area is the one thing we are trying to avoid.

      And yes, within PW, it does work, but we were trying to place some site variables in one place that any Bentley software integrated with PW would read. This allows one location that everything through CONNECT will see.

      This will go away once Ss2 doesn't run, but it's annoying that something that could (or should) be universal is not.

      Remember, the goal is to not need admin privileges to configure the workspace, in or out of PW.


      Charles (Chuck) Rheault
      CADD Manager

      MDOT State Highway Administration

      • MicroStation user since IGDS, InRoads user since TDP.
      • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Sat, Jun 20 2020 1:59 PM in reply to caddcop

      is there a particular reason you want these settings on the local machine at all? We put all our projectwise settings in our site config on our server and just load it as part of the standard workspace. If a particular project or user needs a different setting we would put it in the project config or the user config.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Mick Inkster
      0 Offline Mick Inkster Mon, Jun 22 2020 8:52 AM in reply to caddcop

      Chuck,

      Good to know that Ss10 works with registryread. I guess that's one change that makes the earlier versions incompatible with newer connect editions of PW explorer. As a test you could try install the V8i version of the explorer to see what the pw.cfg files settings look like. I'd be surprised if it contained the registryread command, but it may give you an insight into a potential solution.

      Regarding having the workspace configurable without admin privileges, we use the managed workspace only to determine the locations of config files that are located in PW folders and then "%include" those cfg files as part of the workspace. These can be set as editable by non-admin staff.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • caddcop
      0 Offline caddcop Mon, Jun 22 2020 7:59 PM in reply to Kevin van Haaren

      We are trying to simplify workspace setup for our consultants - many use our workspace for other clients which we like to encourage as it makes them more efficient when working for us. And not all of our offices require the use of ProjectWise.  Many of our consultants struggle with multiple workspaces so we are working to make it easier for them. 


      Charles (Chuck) Rheault
      CADD Manager

      MDOT State Highway Administration

      • MicroStation user since IGDS, InRoads user since TDP.
      • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • caddcop
      0 Offline caddcop Mon, Jun 22 2020 7:59 PM in reply to Kevin van Haaren

      We are trying to simplify workspace setup for our consultants - many use our workspace for other clients which we like to encourage as it makes them more efficient when working for us. And not all of our offices require the use of ProjectWise.  Many of our consultants struggle with multiple workspaces so we are working to make it easier for them. 


      Charles (Chuck) Rheault
      CADD Manager

      MDOT State Highway Administration

      • MicroStation user since IGDS, InRoads user since TDP.
      • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    No Data

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies