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.
lineAnglePlane
papawo
Member, Developers Posts: 206 PRO
Answers
What sort of inputs do you have? It's very easy to make a plane with opPlane as long as you know a point in your plane and the normal of the plane.
I have 1 line, 2 endpts of the line, midpt of the line and the plane normal to line.
I would like to create different planes along the line.
opPlane(context, id + "plane1", { "plane" : plane(endPointPosition1, normalDirection) }); opPlane(context, id + "plane2", { "plane" : plane(midPointPosition, normalDirection) }); opPlane(context, id + "plane3", { "plane" : plane(endPointPosition2, normalDirection) });to create the three planes.Not sure if when you say you have a line and its endpoints, you're saying you have a Line and 2 Vectors or if you have Querys for all three of those things. If they're Querys, you can do the following:
var endPointPoisition1 = evVertexPoint(context, { "vertex" : endPointQuery1 }); var normalDirection = evEdgeTangentLine(context, { "edge" : lineQuery, "parameter" : 0.5 }).direction; etc...plane needs origin,normal & x , correct?
https://cad.onshape.com/FsDoc/library.html#Plane
Can you post a screenshot of how it's not working?