InventorEvent

The Enum of type powerEvents.Inventor.Cmdlets.InventorEvent provides a list of all the supported Inventor events.

Syntax

[powerEvents.Inventor.Cmdlets.InventorEvent]::SaveDocument_Pre

Commonly used events

Event

Typical use

SaveDocument

Set or validate iProperties before a document is saved

FileSaveAsDialog

Replace the Save As dialog, e.g. for custom file numbering

NewDocument

Initialize iProperties of new documents (in _Post)

OpenDocument

React when a document is opened

CloseDocument

React when a document is closed

Remarks

Each of the following Inventor events may have its own set of available arguments, and may only be available for registration either in the Pre or Post state:

They can be used as parameters in registered functions or script blocks.

Tip

You are not forced to use all the defined arguments, since they are all optional.
Therefore you can pass only the parameters you really need into your script blocks.

Warning

The arguments are case sensitive and must be named exactly the same as described in the linked documentation.