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.
Is there a way to transform a 3D point (map) into a 3D vector ?
Antoine_Bodin
Member Posts: 6 PRO
Hello there,
I am looking for a way to transform a 3D point (map) into a vector in a feature script. How can I do it ?
I am looking for a way to transform a 3D point (map) into a vector in a feature script. How can I do it ?
Tagged:
0
Answers
You can make Vectors in featurescript with the `vector(x, y, z)` function. Here is some documentation:
https://cad.onshape.com/FsDoc/library.html#module-vector.fs
Some examples:
If you post the URL of your document, or screenshots of the specific issue you are facing, we can get more specific with our help.
the approach with evVertexPoint() requares the query of a point, so if the sketch contains the only point you can directly use qCreatedBy("sketch_feature_id", EntityType.VERTEX). or if you need sketch entity with specific id use sketchEntityQuery()
Here is a document with an example Feature Script that implements the three methods @konstantin_shiriazdanov outlined.
Best,
Mike