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.

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
}