AnsweredAssumed Answered

repairing a lot of broken references

Question asked by Gordon Rigg on May 30, 2017
Latest reply on May 30, 2017 by Devin Wyatt

On this thread is discussed a method of extracting data from Workgroup PDM. Workgroup PDM to PDM Standard Migration

Now I have all my data reproduced in a windows file structure. (thank you Devin Wyatt)

All the files have unique names because they were in workgroup pdm.

 

Unfortunately the assembly references are all broken, except where the referenced files were in the same project (and now the same directory). The inter project references are all broken. Its very depressing.

If I put this data in worlgroup pdm in this state, the references dont fix themselves. in fact there seems to be no way to repair the references in PDM standard, even though the filenames are all unique. Unless somepone knows how to make it search for unfound fales in directory x and all its sub directories.

 

Now if I was importing genuine windows file system data, those inter directory references would be working, and they would be reproduced in PDM standard. ire its a problem only for those who are trying to self extract their data from WPDM. If you are going from wondows file system to PDM standard you should be fine.

 

So far the only way I have figured out, is to long hand list every directory and sub directory in the file locations, Referenced documents section. Its a lot of directories.

I managed to extract the directory structure into a text file, but now I'm faced with pasting that line by line... unless someone knows better?

 

So my question:

Is there a way to get solidworks to look for files in D:\mydata\"every directory and sub directory here" it seems very sad that there isn't a tick box, include sub directories!

or is there a way to paste a gigantic list of file locations  into the Referenced documents window?

 

Next:

I need a macro to open every assembly and drawing (but not parts) in a directory and all its levels of sub directories, rebuild, save, close.

 

Then all the assemblies should have good references.

 

Outcomes