Drag

The Drag event notifies the client whenever the end-user performs a drag operation in the graphics window. Using this event, the client can override Inventor’s standard drag behavior.
The first notification is sent when the drag starts (selection of the entity to be dragged). Inventor only keeps sending notifications while the mouse is dragged and when the mouse button is released if the drag is handled by the event; otherwise Inventor performs its standard drag behavior. Only _Post is available.

EventNames:

  • Drag_Post

Parameters

Type

Name

Description

DragStateEnum

dragState

Indicates the current state of the drag operation. When the drag is initially started this value is kDragStateDragHandlerSelection, indicating the selection of an entity to be dragged. During the drag, this value is kDragStateOnDrag. When the mouse button is released to stop the drag operation this value is kDragStateEndDrag.

ShiftKeys

shiftKeys

Returns an enumerated constant that corresponds to the state of the SHIFT, CTRL, and ALT keys when the button specified in the button argument is clicked.

Examples:

Drag_Post:

Register-InventorEvent -EventName Drag_Post -Action 'PostDrag'

function PostDrag($dragState, $shiftKeys) {
	#Write event code here
}