if a FeatureScript creates a sketch, how do you get Onshape to 'realize' that it is a sketch?
dave_cowden
Member, Developers Posts: 484 ✭✭✭
In a FeatureScript, I programatically create an populate a sketch. all is well, i see my sketch, and
it is selected when i select the feature in the tree.
My sketch generates closed geometry suitable for extrusion. But when doing an extrude, I cannot select the feature, like I can a sketch.
I must instead manually select all of the entities in the sketch using the mouse.
Is it possible for me to somehow tell Onshape that the feature has created a sketch, which is suitable for selection in extrusion/sweeps? Built-in sketches allow this.
it is selected when i select the feature in the tree.
My sketch generates closed geometry suitable for extrusion. But when doing an extrude, I cannot select the feature, like I can a sketch.
I must instead manually select all of the entities in the sketch using the mouse.
Is it possible for me to somehow tell Onshape that the feature has created a sketch, which is suitable for selection in extrusion/sweeps? Built-in sketches allow this.
0
Best Answer
-
Sorry, sketches are special -- there is currently no way to do this that I am aware of. Long term I think we would need to handle this case with some sort of smart selection...Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
-
Sorry, sketches are special -- there is currently no way to do this that I am aware of. Long term I think we would need to handle this case with some sort of smart selection...Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5

