Plane Question

papawo
papawo Member, Developers Posts: 206 PRO

This cant be extruded because of evOwnerSketchPlane
Do I have to create a plane for this?

Tagged:

Best Answer

Answers

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    evOwnerSketchPlane is looking for a query for an entity from a sketch, not the sketch itself.

    You could use the same definition you used in "sketchPlane" on line 12, or query a face from the sketch.
    Senior Director, Technical Services, EMEA
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,278 image
    The problem is that sketch1 is a "sketch object", while what you need is a query for the entities created by a sketch.  So if you use qCreatedBy(id + "sketch1", EntityType.FACE) in both places in opExtrude, it should work.

    For future reference, posting a link to a public document version is best, but pasting code as text is preferable to pasting a screenshot of code -- because with a screenshot, we can't copy your code to test it.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • papawo
    papawo Member, Developers Posts: 206 PRO
    oh okay..
    thank you!   :#