Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.


Is there a way to get the XYZ coordinates of a mouse clicked point on an object? (Featurescript)

mehmet_reşat_halıcımehmet_reşat_halıcı Member Posts: 2 EDU
Hello everyone,

I am almost entirely new to featurescript. I would like the user to select a point (any point) on a surface and receive its XYZ coordinates. My end goal is to create mate connectors at that given coordinate. Sadly, queries only allow you to select existing vertices and so on. From what I've seen, the closest thing to this was prompting the user to select a reference point and then let them manipulate it with 3 other queries for the respective coordinates. I've looked at raycasts, but they seem different from a raycast that would be in something such as a game engine. Is there something I am overlooking? Your help is greatly appreciated.


Sign In or Register to comment.