File Manager Events

The FileManagerCopy event fires whenever a file is moved or copied using the MoveFile or CopyFile methods of the FileManager object.

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

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 FileManager object.

EventNames:

  • FileManagerDelete_Post

Parameters

Type

Name

Description

String

fullFileName

The full filename of the file being deleted.

Examples:

FileManagerDelete_Post:

Register-InventorEvent -EventName FileManagerDelete_Post -Action 'PostFileManagerDelete'

function PostFileManagerDelete($fullFileName) {
	#Write event code here
}