FileDirty

The fileDirty event notifies the client when a document is about to become dirty.

EventNames:

  • FileDirty_Pre

Parameters

Type

Name

Description

String

libraryName

If the document is a library part, this argument provides the name of the library as defined in the active project. If it is not a library part this will be an empty string.

Examples:

FileDirty_Pre:

Register-InventorEvent -EventName FileDirty_Pre -Action 'PreFileDirty'

function PreFileDirty($libraryName) {
	#Write event code here
}