1 Reply Latest reply on Jun 15, 2015 1:25 PM by Keith Rice

    Document manager API and Old files

    Jeppe SORENSEN

      I have problems using the document manager api with older solidworks files.

      I have a macro that opens the file, loops over all configurations and uses GetComponents from SwDMConfiguration13. Please see code snippet below.


      It fails on older files, e.g. returning an "Empty" list of components.

      What is the best solution for this?


      Best regards




                              Set swConf = swConfMgr.GetConfigurationByName(ConfName)

                              swCompArray = swConf.GetComponents

                              If Not IsEmpty(swCompArray) Then

                                  For i = 0 To UBound(swCompArray)

                                      Set swComp = swCompArray(i)