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.
How do I get the parallel distance between two mate connectors?
joshtargo
Member Posts: 221 EDU
working on my first script.
evdistance is giving me the total distance between two mate connectors, but I want the parallel distance between them (or normal to the first one)
https://cad.onshape.com/documents/68cc6e7f44c7d45ead2a1b38/w/5c67626b11109a69231f9606/e/f5a54e138097299817bb6f7b
evdistance is giving me the total distance between two mate connectors, but I want the parallel distance between them (or normal to the first one)
https://cad.onshape.com/documents/68cc6e7f44c7d45ead2a1b38/w/5c67626b11109a69231f9606/e/f5a54e138097299817bb6f7b
Tagged:
0
Comments
but let me know if there's an easier way!!
Doc:
https://cad.onshape.com/FsDoc/library.html#evDistance-Context-map
chadstoltzfus@premiercb.com
I also have another question.
I want the user to specify a direction by clicking a face or a line, but I don't know how to evaluate that to give me EITHER the line's vector or the face's normal vector, depending on what was picked.
But to talk a little bit about the query "type," there isn't a function like isQueryFace() or typechecks like that (at least none that I know of). You could make your own function library for this if you want to check this often. You can use qEntityFilter() to see if you can any results when filtering the query by a specific EntityType.
Something like
chadstoltzfus@premiercb.com