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.
Search
-
Get a Vector from an Edge
Is there a way to convert an edge (query) to a vector? I've asked Chat GPT but it just seems to make stuff up... "Hi, Chat GPT here, In Onshape FeatureScript, you can convert an edge to a vector using the opEdgeToVector function. This function takes an edge as input and returns a vector representing the direction of the… -
Re: Get a Vector from an Edge
@NeilCooke thanks. Yes I saw that. debug: Line direction (-0, -0, -1)origin (0.1 meter, 0meter, 0.3 meter) A "Line" is a special kind of "map" is that right? Direction + Point. Infinite length. Unsure how to isolate the "direction" component of that "Line". Looking to the help... "...Map elements are accessed or changed… -
Re: Get a Vector from an Edge
When I tweak the above to this... var myLine is Line = evEdgeTangentLine(context, { "edge" : edge1, "parameter" : 0 }); var myPoint is Vector = myLine.origin + myLine.direction *0*mm; debug(context, myLine); debug(context, myPoint); The debug looks like this. debug: Line direction (-0, -0, -1)origin (0.1 meter, 0meter, 0.3…
3 results