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.
FS- Using mate connector as a plane for a sketch
ben_partouch
Member, csevp Posts: 167 PRO
Hi,
Can anyone please help with this? I know it's super basic. Yet I can't figure out the right code...
Thanks,
Can anyone please help with this? I know it's super basic. Yet I can't figure out the right code...
Thanks,
0
Comments
-
I think you’ll want to use evPlane on the mate connector: https://cad.onshape.com/FsDoc/library.html#evPlane-Context-map
It returns a plane that you can then use in the new sketch.0 -
Thanks Tim!
It does't fail like before but I can't manage to see the sketch entity.var sketchPlane = evPlane(context, {"face" : definition.location (the make connector)});var sketch1 = newSketch(context, id + "sketch1", {"sketchPlane" : qCreatedBy(makeId("face"), EntityType.FACE)});// Create sketch entities hereskCircle(sketch1, "circle1", {"center" : vector(0, 0) * inch,"radius" : definition.holeSize * 2});skSolve(sketch1);0 -
I think I got it. Thank you @TimRice1
-
Always use newSketchOnPlane.Senior Director, Technical Services, EMEA1
-
0


