4 Replies Latest reply on Feb 9, 2017 3:05 AM by Antonio Alvarez Arauzo

    Document Manager license key does not work

    Paolo Comand

      I have an old application with Document Manager that was working up to SW2014.

      The application opens all files created up to SW2014 without errors. All the files created with newer versions generate an invalid license key error (as should be).

      I request a new licence key for sw2017 (166 chars vs. 48 chars of 2014). Changed the key in my application.

           swDocMgr = (SwDMApplication)swClassFact.GetApplication(sLicenseKey);

      creates the application without errors

           swDoc = (SwDMDocument20)swDocMgr.GetDocument(myDwg.FullName, nDocType, false, out nRetVal)

      always return 0x80040112 error ("La classe non dispone della licenza per l'utilizzo" EG "The class does not have licence for use")

       

      The Document Manager DLL version is 25.0.0.0 (SwDocumentMgr 2017 Type Library)

      The application access .slddrw files created with earlier versions of Solidworks up to SW2016 (nDocType = SwDmDocumentType.swDmDocumentDrawing).

      What am I doing wrong?

       

      Thanks for your help

      Best regards

          • Re: Document Manager license key does not work
            Paolo Comand

            The license key must be inserted exactly as in the mail they sent to you. All the characters in bold typeface, included company name, columns, comma and '-' character in one single string.

            Don't try to eliminate '-' chars or any part that you believe not necessary.

              • Re: Document Manager license key does not work
                Antonio Alvarez Arauzo

                I think that we have to update the key for the new versions of solidworks..

                 

                Solution Id:

                S-066409

                Product:

                 

                Created:

                7/2/2014

                Technically Reviewed Date:

                7/2/2014

                Area:

                API/Macro

                Sub-Area:

                API

                Question:

                 

                What is the process for obtaining a license key for SOLIDWORKS Document Manager starting with SOLIDWORKS 2015 Beta?

                 

                Answer:

                 

                Starting with SOLIDWORKS 2015 Beta, partners and active subscription users that need a license key for the SOLIDWORKS Document Manager will need to update the key each year in order to read the most current version of SOLIDWORKS files.  Once obtained a key will continue to work unchanged for older versions of SOLIDWORKS files.  In addition the key will control certain portions of Document Manager functionality, so partners should only request a key for the portions they plan to use.  The process to obtain a key has not changed.  As before, partners will need to log into the Customer Portal, go to the API Support area, and use the automated system to request a key.

                 

            • Re: Document Manager license key does not work
              Antonio Alvarez Arauzo

              Starting with Document Manager 2015, you have to request a new license to support the newer SolidWorks version documents. So if you want to call GetDocument on SolidWorks 2017 documents, you need to request a new license for 2017. The license you have will only work through SolidWorks 2014 documents.

               

              Here is the online developer's license key request process:

               

              http://help.solidworks.com/2017/English/api/swdocmgrapi/GettingStarted-swdocmgrapi.html?id=91c6e47e54884b6e93c954bd9afa7ac4#Pg0&ProductType=&ProductName=

               

              This topic provides information to help you get started with using the SOLIDWORKS Document Manager API.

               

              License Key

              The SOLIDWORKS Document Manager API requires a license key that is only available via the SOLIDWORKS customer portal to SOLIDWORKS customers who are currently under subscription. Each user of SOLIDWORKS Document Manager API must have a license key.Existing users must request new SOLIDWORKS Document Manager API license keys beginning with SOLIDWORKS Document Manager API 2015 FCS and renew their SOLIDWORKS Document Manager API license keys when installing any new major release of SOLIDWORKS or the SOLIDWORKS Document Manager API.SOLIDWORKS Document Manager API checks the version of the file being accessed. If the file was created using the same or an earlier version of SOLIDWORKS than the version of SOLIDWORKS Document Manager API license key, then SOLIDWORKS Document Manager API can access the file. However, if the file was created using a later version of SOLIDWORKS than the version of the SOLIDWORKS Document Manager API license key, then SOLIDWORKS Document Manager API cannot access the file and a message is displayed informing the user that the current SOLIDWORKS Document Manager API license key is expired. For example:

              Version in which SOLIDWORKS file createdVersion of SOLIDWORKS Document Manager API license keyFile Access Result
              2014 or earlier2014 or earlierSuccess
              2015 or later2014 or earlierFailure
              2015 or earlier2015 or laterSuccess

              When requesting or renewing a SOLIDWORKS Document Manager API license key, you are presented with a dialog containing a list of check boxes showing the categories of functionality that a SOLIDWORKS Document Manager API license key controls. You can select more than one category.

              • Basic: All interfaces, methods, and properties except for those listed below
              • Previews: Preview and stream methods and properties on all ISwDMConfiguration, ISwDMDocument, and ISwDMSheet interfaces
              • DimXpert: DimXpert methods and properties on all ISwDMConfiguration and all DimXpert-related interfaces
              • Geometry Streams: Preview, stream, and imported body methods and properties on all ISwDMConfiguration interfaces
              • XML Streams: XML stream methods on all ISwDMDocument interfaces
              • Tesselation: Display List DLL (previously called the Display List Sample); although not a component of the SOLIDWORKS Document Manager API, its license key controls access to the Display List DLL

              To request a SOLIDWORKS Document Manager API license key:

              1. Log into the SOLIDWORKS customer portal.
              2. Click API Support in My Support.
              3. Click Document Manager key request in step 4.
              4. Follow the online instructions to request your license key.