Display X-Y Grid Coordinates - AutoCAD Electrical 2022

mrshayboo
Contributor
Contributor

Display X-Y Grid Coordinates - AutoCAD Electrical 2022

mrshayboo
Contributor
Contributor

I was wondering if there was a way to display the X-Y Coordinates of my cursor or a certain component, as it is difficult to locate a component or an area on the drawing otherwise.

 

In terms of the picture, could you display the coordinates 2-C somewhere as it is a self-made boundary so not sure if AutoCAD could pick this up.

 

Would save me scrolling to each edge to see where I am on a drawing.

0 Likes
Reply
414 Views
3 Replies
Replies (3)

rhesusminus
Mentor
Mentor

You can't do this with out-of-the-box AcadE functionality. Everything can be done by some programming of course.

 

 


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉

mrshayboo
Contributor
Contributor
HI, Thanks for the reply, could you point me in the right direction on where I can look to lesrn the programming required for such functions.
0 Likes

rhesusminus
Mentor
Mentor

Learn C#: https://www.linkedin.com/learning/search?keywords=c%23

Learn the AutoCAD API: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html

 

Psuedocode:

- On open/activate new drawing get the WD_M block
- Read the values of the attributes XY_DELIM, SHEET, HORIZ_FIRST, CHAR_V, CHAR_H, DISTV, DISTH, DATUMX, DATUMH
- Start loop
- Get the current cursor position
- Calculate the position of the cursor within the sheet using the fetches coordinates
- Put the calculated value somewhere (Tooltip on cursor?)
- Goto start loop

 

 


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes