Representation Events
Event that is fired whenever a DesignViewRepresentation changes.
EventNames:
ActivateDesignView_Pre
ActivateDesignView_Post
Examples:
ActivateDesignView_Pre:
Register-InventorEvent -EventName ActivateDesignView_Pre -Action 'PreActivateDesignView'
function PreActivateDesignView() {
#Write event code here
}
ActivateDesignView_Post:
Register-InventorEvent -EventName ActivateDesignView_Post -Action 'PostActivateDesignView'
function PostActivateDesignView() {
#Write event code here
}
The ActivatePositionalRepresentation event notifies the client when a positional representation is being activated.
EventNames:
ActivatePositionalRepresentation_Pre
ActivatePositionalRepresentation_Post
Examples:
ActivatePositionalRepresentation_Pre:
Register-InventorEvent -EventName ActivatePositionalRepresentation_Pre -Action 'PreActivatePositionalRepresentation'
function PreActivatePositionalRepresentation() {
#Write event code here
}
ActivatePositionalRepresentation_Post:
Register-InventorEvent -EventName ActivatePositionalRepresentation_Post -Action 'PostActivatePositionalRepresentation'
function PostActivatePositionalRepresentation() {
#Write event code here
}
Event that is fired whenever a DesignViewRepresentation is created.
EventNames:
NewDesignView_Pre
NewDesignView_Post
Examples:
NewDesignView_Pre:
Register-InventorEvent -EventName NewDesignView_Pre -Action 'PreNewDesignView'
function PreNewDesignView() {
#Write event code here
}
NewDesignView_Post:
Register-InventorEvent -EventName NewDesignView_Post -Action 'PostNewDesignView'
function PostNewDesignView() {
#Write event code here
}
The NewPositionalRepresentation event notifies the client when a new positional representation is created.
EventNames:
NewPositionalRepresentation_Pre
NewPositionalRepresentation_Post
Examples:
NewPositionalRepresentation_Pre:
Register-InventorEvent -EventName NewPositionalRepresentation_Pre -Action 'PreNewPositionalRepresentation'
function PreNewPositionalRepresentation() {
#Write event code here
}
NewPositionalRepresentation_Post:
Register-InventorEvent -EventName NewPositionalRepresentation_Post -Action 'PostNewPositionalRepresentation'
function PostNewPositionalRepresentation() {
#Write event code here
}
The RepresentationDelete event notifies the client when any representation related objects are deleted. These include positional representations and design views.
EventNames:
RepresentationDelete_Pre
RepresentationDelete_Post
Examples:
RepresentationDelete_Pre:
Register-InventorEvent -EventName RepresentationDelete_Pre -Action 'PreRepresentationDelete'
function PreRepresentationDelete() {
#Write event code here
}
RepresentationDelete_Post:
Register-InventorEvent -EventName RepresentationDelete_Post -Action 'PostRepresentationDelete'
function PostRepresentationDelete() {
#Write event code here
}