SWReplaceReferencedDocument

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem >

SWReplaceReferencedDocument

Description

It is a wrapper to the hosting CAD api functionality for replacing references in documents.

Syntax

call DBWShell("SWReplaceReferencedDocument ReferencingDoc ReferencedDoc NewReference")

Parameters

ReferencingDoc

It's the file whose references will be modified.

ReferencedDoc

File is referenced by the ReferencingDoc
all of its references within the ReferencingDoc will be replaced by NewReference

NewReference

New document used by ReferencingDoc

Remarks

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).

See also

MarkAsNewReference

MarkAsReferenced
ReplaceReferenced