OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Coert on October 10, 2012, 07:28:16 AM

Title: Event DragnDropToAutoCAD is not working properly in release 13
Post by: Coert on October 10, 2012, 07:28:16 AM
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
Title: Re: Event DragnDropToAutoCAD is not working properly in release 13
Post by: owenwengerd on October 10, 2012, 03:53:39 PM
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.