5 Replies Latest reply on Mar 9, 2015 10:10 AM by Francis Harvey

    Add-in targeting multi version of PDM

    Francis Harvey

      Hi All,

       

      I experience error when i load add-in in my pdm server,

       

      I didn't notice and test every thing after the installation of the new client on my machine but it seem that my add-in doesn't work with PDM 2011.

       

      Is there a way to target every version of EPDM, from 20yy to 20xx,

       

      The Interop.EDMLib.dll is 5.15 on the new version and 5.14 on the old, and after changing the reference, it seem to be unable to load the add-in on old version of PDM.

       

      Am I missing something or add-in are really version sensitive?

       

      Can I tell my add-in to be PDM version independant...?

       

      Should I compile the same add-in multiple time by changing the EdmLib version and keeping the interop dll into different folder?

       

      What a mess...!

       

      Thanks

        • Re: Add-in targeting multi version of PDM
          Hansjoerg Kauschke

          Hi Francis,

           

          The Version requirements can be set in the GetAddInInfo sub/function via the poInfo.mlRequiredVersionMajor and poInfo.mlReqiredVersionMinor properties. But I guess thats not the problem here...is your system running on a 64Bit Windows? if so you'll need to register the dll with "C:\Windows\Microsoft.net\Framework64\v4.0.30319\Regasm.exe /codebase *Path of the dll*"

           

          If that doesn't help could you please post the error you're getting when tryin to load the addin.

            • Re: Add-in targeting multi version of PDM
              Francis Harvey

              Hi Hansjoerg,

               

              I think one or two of my archive server are corrupted,

               

              When i load the add-in, it shows popup messages:

               

                   Error loading the add-in.

                   Reason: Error accessing a file on the archive server.

               

                   Failed to install new add-ins.

               

              But i'm able to load it on other vault on the same server and on other server...

               

              Do you know what can i do or check to understand what's happening...?

               

              Here's the error log:

               

                   Error accessing a file on the Archive Server.

                   Operation type: Op_AddFile
                   GUID: 91a5b7e2-d65d-4dfd-9fe0-52e7e426bd8e
                   File ID: 0x6f
                   Vault: 001BD7E8
                   File size: 218582
                   Connected to: XXX.YYY.ZZZ.15:8547
                   Local file path: C:\Program Files\SolidWorks Enterprise PDM\Data\PDMWork2010\0\Plugins\0000006f

               

              Thank you

                • Re: Add-in targeting multi version of PDM
                  Hansjoerg Kauschke

                  Are you able to add other files to the vault where adding the addin fails?

                  what (if any) error is the client log listing?

                  What error-code is the log listing?(E_FVC_...or E_EDM_... or smth like that)

                   

                  Have you tried using the "Debug Addin" before adding the addin to the vault? this may give you some additional information.

                   

                  Are you logged in as admin when trying to add the addin?

                  • Re: Add-in targeting multi version of PDM
                    Jim Sculley

                    Probably a bit late for this, but I had the same issue today with one of my vaults.  The error messages were identical to yours:

                     

                    Error loading the add-in.

                    Reason: Error accessing a file on the archive server.

                     

                    The vault where the error occured was a copy of another vault restored from a SQL backup so that I would have an identical environment to the original vault but with no files in it.

                     

                    The problem turned out ot be a missing directory on the archive server.  If you look at your error message, it provides a clue:

                     

                    Local file path: C:\Program Files\SolidWorks Enterprise PDM\Data\PDMWork2010\0\Plugins\0000006f

                     

                    On my archive server, the Plugins directory was missing.  Once I added it under the 0 directory, the add-in loaded with no errors.

                     

                    Jim S.