NewSketch

The NewSketch event notifies the client whenever a sketch is created. _Pre fires before and _Post after the sketch is created.

EventNames:

  • NewSketch_Pre

  • NewSketch_Post

Parameters

Type

Name

Description

Document

document

Document object that indicates the document in which the change occurred.

Examples:

NewSketch_Pre:

Register-InventorEvent -EventName NewSketch_Pre -Action 'PreNewSketch'

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

NewSketch_Post:

Register-InventorEvent -EventName NewSketch_Post -Action 'PostNewSketch'

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