File Manager Events
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
}
The FileManagerDelete event notifies the client whenever a file is deleted using the DeleteFile method of the Inventor FileManager object (Inventor API call). Only _Post is available.
EventNames:
FileManagerDelete_Post
Parameters
Type |
Name |
Description |
|---|---|---|
String |
fullFileName |
The full filename of the file being deleted. |
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:
FileManagerDelete_Post:
Register-InventorEvent -EventName FileManagerDelete_Post -Action 'PostFileManagerDelete'
function PostFileManagerDelete($fullFileName) {
#Write event code here
}