Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Plane Question

papawopapawo 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

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    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, EMEAI
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,215
    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
  • papawopapawo Member, Developers Posts: 206 PRO
    oh okay..
    thank you!   :#
Sign In or Register to comment.