Hi all,
I am currently working on a macro that "repair" broken links of a product by searching the missing parts in given directories (and recursively subdirectories). The macro is working since the name of the products (or parts) are the same as the name of the files. For example you have in the tree :
Part1 (part1.1)
so the file will be named Part1.CATPart, stored somewhere.
I have cases where this rule ain't true.
So was hoping someone here knows :
- how to straightly identify a CATPart or CATProduct (not by using it's .PartNumber, .Name) but something like a unique reference that would be hidden in the file.
- How to quickly list (in an array) the missing objects of the tree (my method is not very fast on huge assemblies)
If someone is intersted, of course I would be glad to share my code.
Synchrotron
I am currently working on a macro that "repair" broken links of a product by searching the missing parts in given directories (and recursively subdirectories). The macro is working since the name of the products (or parts) are the same as the name of the files. For example you have in the tree :
Part1 (part1.1)
so the file will be named Part1.CATPart, stored somewhere.
I have cases where this rule ain't true.
So was hoping someone here knows :
- how to straightly identify a CATPart or CATProduct (not by using it's .PartNumber, .Name) but something like a unique reference that would be hidden in the file.
- How to quickly list (in an array) the missing objects of the tree (my method is not very fast on huge assemblies)
If someone is intersted, of course I would be glad to share my code.
Synchrotron