Did you read the help?
Document whose references to modify; the document cannot be open
Document is referenced by ReferencingDocument; all of its references within ReferencingDocument are replaced by NewReference
New document used by ReferencingDocument
Thanks Josh...I did. I guess I am still a bit hung up on references vs components.
Eric Snyder wrote:
Does anybody know how swApp.ReplaceReferencedDocument handles replacement of multiple references of the same document? Here is the set up:
I have an assembly that has 50 components that are the exact same component, just inserted 50 times. The component file is outside the vault. I copy the component file to the vault and want to run swApp.ReplaceReferencedDocument to replace the references.
Does this API command replace all references. Is replacing the references the same as replacing the components?
it doesn't matter how many ref. you have in your document, as long as you provide a new and old files, ref. with the same name will be replaced