DocCopyMoveEvent_*BeforeCopyWithReferences event

Occurs before documents are copied with references.

Syntax

DocCopyMoveEvent_BeforeCopyWithReferences(Batch, OldParentDocument, NewParentDocument, TargetFolder)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

OldParentDocument

An object that represents the parent document of the source documents.

NewParentDocument

An object that represents the parent document of the copied documents.

TargetFolder

An object that represents the destination folder. This event can modify the destination folder.

Remarks

When a project copy is made of an assembly, this event occurs for all documents in the assembly, even those that are not copied but stay referenced. This can occur if the Default Duplicator Action option of the document type is set to Reference the source instead of Reference the copies (which were made by the command). You can confirm which documents were actually copied by checking the value of the TargetFolder parameter, which will be empty for the documents that were not copied.

Related concepts

About the document copy/move events