Recursively iterating an assembly

Hi All,

I am looking for a bit of guidance here. I am working on a program using document explorer where it iterates an assembly. I am running into situations where when I iterate the components for a configuration, the pathname for each component returns a path that originated on another computer (i.e. c:\work\modela) and doesn't exist on my computer (i.e. files are now in c:\testdata\modela).

What I tried to do was use the GetDocument2 after retrieving the searchoption. I add the path that the original assembly is in and it still isn't resolving. After that I just hack it and replace the path to the component with the path to the original assembly and retrieve the document object from the application object. This seems to work as long as the files are all in the same directory.

Is there an approved/standard way of handling assemblies that reside in a different location than what solidworks originally saved them in? Or is the approved way call it up in solidworks and save it again?

Any guidance would be appreciated.

thanks!

SolidworksApi macros