FileOpenDialog

The FileOpenDialog event notifies the client when the user executes the Open command to open an existing file.

Remarks

By using this event and setting a fileName and directoryPath to the result variable, the user can replace the default inventor behavior, normally used to replace the Inventor dialog with their own dialog.

EventNames:

  • FileOpenDialog_Pre

Parameters

Type

Name

Description

ResultParameters

result

Object used to supply the result of the operation. See below.

Result properties:

Type

Name

Description

String

FileName

The file name to use.

String

DirectoryPath

The directory where the file that should be opened is in.

String

FullFileName

The full file name of the file that will be used. Can be used to check that the set file name is correct.

Examples:

FileOpenDialog_Pre:

Register-InventorEvent -EventName FileOpenDialog_Pre -Action 'PreFileOpenDialog'

function PreFileOpenDialog($result) {
	#Write event code here
	$result.FileName = "12345.ipt"
	$result.DirectoryPath = "C:\\Vault"
	$result.FullFileName # C:\\Vault\12345.ipt
}