TranslateDocument

The TranslateDocument event notifies the client whenever a file is translated into inventor or an Inventor document is translated out to a non-Inventor file.

EventNames:

  • TranslateDocument_Pre

  • TranslateDocument_Post

Parameters

Type

Name

Description

bool

translatingIn

Input Boolean that specifies whether the document is being translated into Autodesk Inventor.

String

fullFileName

The full filename of the document being translated. This is supplied both before and after.

Examples:

TranslateDocument_Pre:

Register-InventorEvent -EventName TranslateDocument_Pre -Action 'PreTranslateDocument'

function PreTranslateDocument($translatingIn, $fullFileName) {
	#Write event code here
}

TranslateDocument_Post:

Register-InventorEvent -EventName TranslateDocument_Post -Action 'PostTranslateDocument'

function PostTranslateDocument($translatingIn, $fullFileName) {
	#Write event code here
}