AnsweredAssumed Answered

Document manager API and Old files

Question asked by Jeppe SORENSEN on Jun 15, 2015
Latest reply on Jun 15, 2015 by Keith Rice

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)