Plane Question
papawo
Member, Developers Posts: 206 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


