with a command given by a control in a modeless form,
I would like to insert a block,
and I would like to make it appear under the tip of the cursor.
In other words, i want insert it at the point
returned by (dcl-getdwgmousecoords) and then move it.
But when the cursor is over a modeless dialog
(when I click on a control contained in it)
dcl-getdwgmousecoords behaves strangely
and does not return the coordinates of the cursor ...
Please note that the modeless form is contained
in the BricsCAD drawing area.
But even if it were not,
dcl-getdwgmousecoords should return the point of the drawing area
closest to the cursor at that moment.
But that is not the case!
most likely what I said before is wrong!
Because dcl-getdwgmousecoords always works badly!
Try using the following function:
(defun c:p ()(vl-cmdf "point" (dcl-getdwgmousecoords) ) )
it's very strange... i tested dcl-getdwgmoudecoords again
and everything works fine!
And I can't understand why it didn't work at all before!
And of course, i'm sure the coordinate system was "world"...
...because it's the first thing that comes to mind...
...i can't reproduce the error!
...if i succeed i'll post something again!
sorry !