ObjectDCL Banner

GetMouseCoords Method

Description

This method will return the current screen position of the cursor in pixel unit only.

Return Values

Returns the following according to the situation:

  • A 3dPoint indicating the position.
  • Nil if there is a problem.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetMouseCoords )

Remarks

If the control name is blank then it is the dialog box that has the focus.

Example

CopyCode imageCopy Code
; Get the mouse position
(Setq rValue (Odcl_GetMouseCoords))

See Also

GetDwgMouseCoords