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.
Plane Question
papawo
PRO
This cant be extruded because of evOwnerSketchPlane
Do I have to create a plane for this?

Tagged:
0
Best Answer
-
For direction, you still need evOwnerSketchPlane -- specifically, evOwnerSketchPlane(context, { "entity" : qCreatedBy(id + "sketch1", EntityType.FACE) }).normalIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
-
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, EMEA0 -
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 Inc0 -
-
For direction, you still need evOwnerSketchPlane -- specifically, evOwnerSketchPlane(context, { "entity" : qCreatedBy(id + "sketch1", EntityType.FACE) }).normalIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
oh okay..
thank you!
0


