|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > SWReplaceReferencedDocument |
It is a wrapper to the hosting CAD api functionality for replacing references in documents.
call DBWShell("SWReplaceReferencedDocument ReferencingDoc ReferencedDoc NewReference")
ReferencingDoc |
It's the file whose references will be modified. |
|---|---|
ReferencedDoc |
File is referenced by the ReferencingDoc |
NewReference |
New document used by ReferencingDoc |
This command requires the integrated version (no standalone usage)
This command takes effect on invoking-CAD specific file types only (e.g. call the command on Solid Edge files from a script run in Solidworks environment is not effective).
All the arguments are case sensitive.
ReferencedDoc and NewReference must be of the same type (changing a P reference with an A reference is not allowed).
Paths must not contain spaces, so you've to replace space characters with "|" (pipe).