KCL standard library hide()
function
#2559
Replies: 3 comments
-
This is thorny. If you sketch on the face of an extrusion and then extrude from that sketch, what of the following can you do?
|
Beta Was this translation helpful? Give feedback.
-
A potential nice scope decrease for this would be to make
That would align with Onshape's feature tree UI, which allows toggling of visibility of Sketches and default planes but not Extrusions, Fillets, or even Offset Surfaces |
Beta Was this translation helpful? Give feedback.
-
I've talked myself out of this because both those use cases can be handled outside of KCL:
|
Beta Was this translation helpful? Give feedback.
-
In all traditional CAD programs there is an entity tree showing each of the operations performed on your entities, and these components allow the user to toggle the visibility/inclusion of that entity in the part/assembly on and off. Here is SolidWorks' documentation on theirs, for example, which has different configurable views:
Other examples like the feature tree in Onshape allow users to toggle the visibility of features. How would we do this in our code-first paradigm?
I propose we add a
hide()
function that does the following:But which importantly does not break features later in the model that rely upon it. This is why I do not think another approach like commenting out code would work to support a show/hide toggle in the feature tree.
A hidden sketch, for example:
Beta Was this translation helpful? Give feedback.
All reactions