FileManagerCopy
The FileManagerCopy event notifies the client whenever a file is moved or copied using the MoveFile or CopyFile method of the Inventor FileManager object (Inventor API call). Only _Pre is available.
EventNames:
FileManagerCopy_Pre
Parameters
Type |
Name |
Description |
|---|---|---|
String |
sourceFullFileName |
The full file name of the file to copy/move. |
String |
destinationFullFileName |
The full file name of the destination to copy/move to. |
bool |
isCopy |
Indicates whether this is a ‘copy’ (True) or a ‘move’ (False). |
Remarks:
This event can be aborted by throwing an exception inside the action.
Throwing an OperationCanceledException aborts the operation without any message.
Throwing any other exception aborts the operation and displays the thrown exception in an Error Message Box.
Examples:
FileManagerCopy_Pre:
Register-InventorEvent -EventName FileManagerCopy_Pre -Action 'PreFileManagerCopy'
function PreFileManagerCopy($sourceFullFileName, $destinationFullFileName, $isCopy) {
#Write event code here
}