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.
Gotcha! qCapEntity returns no START cap unless extrusion was orthogonal to the world
blackslate
Member Posts: 16 ✭
To see a demo of this issue, please visit my Extrude Cap Test document and double-click on the Extrude Cap Test feature to open the dialog and show debug feedback.
In Debug Mode, you should see a red plane and a green face. The face is the result of the query of the type: qCapEntity(extrudeId, CapType.START, EntityType.FACE). All well and good.
However, if you deselect either "Sketch on world plane" or "Extrude along world axis", the green debug feedback will disappear. In the FeatureScript notices, you will see:
capFace START debug: Query resolves to nothing
If you choose to show the END cap in the dialog, you will see two green debug faces, the notice "capFace END debug: Query resolves to 2 faces".
I expected to see one START cap face and one END cap face for every extrude, regardless of the plane on which the sketch is drawn and the extrusion direction. Have I misunderstood something?
capFace START debug: Query resolves to nothing
If you choose to show the END cap in the dialog, you will see two green debug faces, the notice "capFace END debug: Query resolves to 2 faces".
I expected to see one START cap face and one END cap face for every extrude, regardless of the plane on which the sketch is drawn and the extrusion direction. Have I misunderstood something?
0
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,688Yep, looks like a bug.Senior Director, Technical Services, EMEAI0
Answers
I've updated my Extrude Cap Test document, and now you can: