SketchDelete

The SketchDelete event notifies the client when a 2D or 3D sketch is deleted. The event is only fired when the sketch itself is deleted, not when its contents are deleted. _Pre fires before and _Post after the sketch is deleted.

EventNames:

  • SketchDelete_Pre

  • SketchDelete_Post

Parameters

Type

Name

Description

Document

document

Document object that contains the sketch.

Examples:

SketchDelete_Pre:

Register-InventorEvent -EventName SketchDelete_Pre -Action 'PreSketchDelete'

function PreSketchDelete($document) {
	#Write event code here
}

SketchDelete_Post:

Register-InventorEvent -EventName SketchDelete_Post -Action 'PostSketchDelete'

function PostSketchDelete($document) {
	#Write event code here
}