Extrude input needs to be changed based upon expression value out of multiple sketches available.
Extrude input needs to be changed based upon expression value out of multiple sketches available.
(OP)
Hi,
Is there any chances where based upon a value of an expression extrusion input sketch needs to be changed.
i.e for ex if I have 5 sketches, an expression "Sketch No = 1"
-> When the expression Sketch_No value is 1 then Sketch_000 should be selected for extrusion
-> likewise if the Sketch_No value is 2 then Sketch_001 should be selected.
Thanks and Regards,
Maddy
Is there any chances where based upon a value of an expression extrusion input sketch needs to be changed.
i.e for ex if I have 5 sketches, an expression "Sketch No = 1"
-> When the expression Sketch_No value is 1 then Sketch_000 should be selected for extrusion
-> likewise if the Sketch_No value is 2 then Sketch_001 should be selected.
Thanks and Regards,
Maddy
Regards,
Maddy





RE: Extrude input needs to be changed based upon expression value out of multiple sketches available.
I didn't create with replacing the sketch. I just created a couple of extrude bodies and suppress them with expression.
If there are some additional detailed features (blends, chamfers, holes, etc.) on those extrudes, then I would have to create all those featutes on each extrude.
But then again, if there is only one extrude and I am just replacing the sketch for this extrude (with Reattach command), then lots of subsequent features will fail anyway and I will have to fix them manually.
Hope that this 'suppress by expression' option will help somehow.
RE: Extrude input needs to be changed based upon expression value out of multiple sketches available.
here is a little bit smarter solution:
I uses object groups and supression-values. See the attached PDF-Dokumentation from me.
Enjoy it. Best regards
Michael