Cursor x y position

Cursor x y position

Anonymous
Not applicable
1,815 Views
4 Replies
Message 1 of 5

Cursor x y position

Anonymous
Not applicable

Hi everyone:

 

Is there a way to put into a variables the x and y cursor position with out clicking (only when moving it)?

 

Thanks and regards

Clode

0 Likes
Accepted solutions (1)
1,816 Views
4 Replies
Replies (4)
Message 2 of 5

_gile
Consultant
Consultant
Accepted solution

Hi,

 

You can use the grread function.

If you google for grread you'll find many examples.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 5

Anonymous
Not applicable

@_gile  ha escrito:

Hi,

 

You can use the grread function.

If you google for grread you'll find many examples.


Ok, thanks for the replay!!

 

Clode

0 Likes
Message 4 of 5

office
Observer
Observer

when a command is active, in AutoCAD 2022 grread will hide and freeze the cursor!

Try - while drawing a line - to execute ...

(while(= 5(car(grread t))) + ENTER

... then the cursor disappear until you click with left mouse button.

This seams to be a bug in AutoCAD 2022!

 

In all other Versions the cursor is visible and can be moved.

 

Is there no other vla or vlax routine, to get the most important point of mouse action on screen than grread???

Thanks

 

 

0 Likes
Message 5 of 5

ВeekeeCZ
Consultant
Consultant

It has been fixed already. Make sure that you have all fixes and updates installed.

0 Likes