ObjectDCL Banner

OnDragnDropToAutoCAD Event

Description

Indicates the user has just dragged and dropped on to the AutoCAD Drawing from this control.

Parameters

3dPoint
3dPoint describing the mouse coordinates where the drop ended in the drawing.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnDragnDropToAutoCAD (3dPoint [as 3dPoint] /)
     
)

Applies For

BlockList, BlockView, DwgList, DwgPreview, GraphicButton, Grid (Hatch), Label, ListBox, ListView, PictureBox, SlideView, TextButton, TreeControl.

Example

CopyCode imageCopy Code
; React to the drag-and-drop operation ending in AutoCAD on the drawing
; at the given coordinates
(defun c:MyForm_MyControl_OnDragnDropToAutoCAD (3dPoint /)
     (princ "OnDragnDropToAutoCAD(")
     (princ 3dPoint)
     (princ ")\n")
)

See Also

OnDragnDropBegin, OnDragnDropFromControl, OnDragnDropFromOther