MigrateDocument

The MigrateDocument event notifies the client when a document is being explicitly migrated.

Remarks

Explicit migration can happen in the following situations:

  • User selects the Migrate command through the User Interface

  • The document.Migrate method is called via the API on a document needing migration

  • A document needing migration is saved

EventNames:

  • MigrateDocument_Pre

  • MigrateDocument_Post

Examples:

MigrateDocument_Pre:

Register-InventorEvent -EventName MigrateDocument_Pre -Action 'PreMigrateDocument'

function PreMigrateDocument() {
	#Write event code here
}

MigrateDocument_Post:

Register-InventorEvent -EventName MigrateDocument_Post -Action 'PostMigrateDocument'

function PostMigrateDocument() {
	#Write event code here
}