[Solved] Get coordinates of point on surface under cursor
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 84
- Joined: Mon May 16, 2022 10:35 am
[Solved] Get coordinates of point on surface under cursor
Hi all,
I want to know if it's possible to get the coordinates of a point on a surface that is selected with the cursor. I know it's possible to get the position of the cursor (x,y) on the screen, but I want the coordinates of the first point on a surface under that cursor position. Here is what I mean:
I want to know if it's possible to get the coordinates of a point on a surface that is selected with the cursor. I know it's possible to get the position of the cursor (x,y) on the screen, but I want the coordinates of the first point on a surface under that cursor position. Here is what I mean:
Last edited by thyssentishman on Thu May 19, 2022 7:56 am, edited 1 time in total.
Re: Get coordinates of point on surface under cursor
You mean the coordinates that are shown in the status bar?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Veteran
- Posts: 3192
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: Get coordinates of point on surface under cursor
View|Status Bar or left click, then
in the Python Console returns coordinates.
Code: Select all
Gui.Selection.getSelectionEx()[0].PickedPoints
-
- Posts: 84
- Joined: Mon May 16, 2022 10:35 am
Re: Get coordinates of point on surface under cursor
Thank you chrisb and edwilliams16, this is exactly what I wanted. Amazing!
Re: [Solved] Get coordinates of point on surface under cursor
Please mark OP title [Fixed] by prepending it.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
-
- Posts: 84
- Joined: Mon May 16, 2022 10:35 am
Re: [Solved] Get coordinates of point on surface under cursor
No it's all good! They are synonymous
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: [Solved] Get coordinates of point on surface under cursor
Hi
With the position of the cursor (x, y), we could print out the coordinates of the red point (x, y, z).
What if we know the coordinates of the red point, how do I get its position on screen (only x, y)?
Mea08kw
With the position of the cursor (x, y), we could print out the coordinates of the red point (x, y, z).
What if we know the coordinates of the red point, how do I get its position on screen (only x, y)?
Mea08kw
Re: [Solved] Get coordinates of point on surface under cursor
@mea08kw Why the same question 3 times? That is just crazy. Please stop doing that!
viewtopic.php?p=661297#p661297
viewtopic.php?p=661300#p661300
viewtopic.php?p=661297#p661297
viewtopic.php?p=661300#p661300
Re: [Solved] Get coordinates of point on surface under cursor
No problem, Roy.