I've written a program to automatically change any lost links for occurences in an assembly, using the Replace method. This works fine, for normal parts and subassemblies, but not for part with Family Members. If I call the replace method I get a FileNotFoundException although I'm certain I'm using the correct file name.
Although it seems strange to me I'm getting this FileNotFound error, I also noticed there is an extra argument for this function which is related to family members, but I don't understand how to use this argument. I expected it to be a string with the member name, but it is an 'object'.
I've found the cause of the 'File not found' exception. As it turned out this is caused by the original file not being found! However... the reason I'm replacing is that the old file does not exist any more! Also, with a normal occurrence (not being a Family Of Assembly) this is not a problem at all, only with a FAO. It almost seems to be a fault in the API!
Any thoughts? Is this a bug?
Posted by: Hendri Verveda Post date: 12/11/2011 8:13:55 PM