FS- Using mate connector as a plane for a sketch
ben_partouch
Member, csevp Posts: 168 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


