Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Onshape Featurescript Query - return XYZ coordinates of a mouseclicked point on a part
joshua_lee840
Member Posts: 6 ✭
Hello Onshape:
I want to make a featurescript that queries for the user to click a point on a surface or edge, then returns the XYZ coordinates of the spot that was clicked. This would greatly simplify a lot of work for certain kinds of freehand work that I have been doing recently. I have attached an image to serve as an example.
I noticed that right-clicking the model and choosing [Select Other] in the dropdown menu causes a yellow symbol to hover over my surface, which is very close to what I want. Can you advise me on how to access this XYZ-coordinate?
My end goal is to create mate connectors at selected points with the Z axis sticking out normal to the surface. Some of the objects I work with have organic shapes that require a lot of trial and error to get the right mate locations.
Sincerely,
Joshua Lee
I want to make a featurescript that queries for the user to click a point on a surface or edge, then returns the XYZ coordinates of the spot that was clicked. This would greatly simplify a lot of work for certain kinds of freehand work that I have been doing recently. I have attached an image to serve as an example.
I noticed that right-clicking the model and choosing [Select Other] in the dropdown menu causes a yellow symbol to hover over my surface, which is very close to what I want. Can you advise me on how to access this XYZ-coordinate?
My end goal is to create mate connectors at selected points with the Z axis sticking out normal to the surface. Some of the objects I work with have organic shapes that require a lot of trial and error to get the right mate locations.
Sincerely,
Joshua Lee
Tagged:
0
Answers
Also try Face curves by Evan as well.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴