Event DragnDropToAutoCAD is not working properly in release 13

Started by Coert, October 10, 2012, 07:28:16 AM

Previous topic - Next topic

Coert

Hi,

The event DragnDropToAutoCAD  with property “Event  Invoke = 1-Asynchronuous” is not working properly in AutoCAD and Bricscad. It look likes the event invoke is synchronous. You can easily test this with the attached program.

Copy the files in a search path of AutoCAD and load the lisp file “DropInAcad.lsp” Start the lisp function (start) and the dialog appears. When you drag and drop a point from the dialog slide tile the dialog appears again without inserting the dwg “DropInAcad.dwg”.

Note it works fine in previous releases.
(I'm using OpenDCL 7.0.0.8)

Thanks in advance,
Coert van den Broek

owenwengerd

The DragNDropToAutoCAD event has changed in OpenDCL 7. It is always synchronous because the return value is now used to decide whether or not to invoke the default handler. You could use (dcl_SendString) inside the event handler to run another function asynchronously to actually do the work.
Owen Wengerd (Outside The Box) / ManuSoft