OpenDocument

The OpenDocument event notifies the client when a document is opened.

EventNames:

  • OpenDocument_Pre

  • OpenDocument_Post

Parameters

Type

Name

Description

String

fullDocumentName

Output string that specifies the fully qualified name of the document being opened. This is supplied both before and after.

Examples:

OpenDocument_Pre:

Register-InventorEvent -EventName OpenDocument_Pre -Action 'PreOpenDocument'

function PreOpenDocument() {
	#Write event code here
}

OpenDocument_Post:

Register-InventorEvent -EventName OpenDocument_Post -Action 'PostOpenDocument'

function PostOpenDocument() {
	#Write event code here
}