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.
Creating a Query from a Plane
graham_lock
Member Posts: 162 PRO
Hi,
I have the following code:
var horizontalPartSketchPlane = evFaceTangentPlane(context, {
"face" : face,
"parameter" : vector(0.5, 0.5)
});
var skHorizontalPart = newSketch(context, id + faceIndex + "skHorizontalPart", {
"sketchPlane" : horizontalPartSketchPlane as Query
});
Which fails at the sketchPlane attribute.
What's the correct way to convert the plane entity to a query please?
Thank you.
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,715
Answers
newSketchOnPlane (context is Context, id is Id, value is map) returns Sketch
Create a new sketch on a custom plane, specified by a
Plane
object. The sketch coordinate system will match the coordinate system of the plane.Parameter
Type
Additional Info
value
map
sketchPlane
Plane
EXAMPLE