Hello, under solidworks 2017 I am testing things to automatically remove functions under certain conditions ... and even the basic equations don't work as I thought (see attached photo).
in fact just to test and then apply more concretely in one of the designs, I would like that if the drilling (removing mat extud1 ) is removed, the chamfers present on the 2 holes above remain, otherwise they are removed ... but this has no effect when I deactivate or reactivate my material removal... Could someone point me in the right direction?
Hello Impossible to make Solidworks detect if a function is deleted or not, the first part of the equation is invalid, that's why it doesn't display the result.
You can delete two Functions by having a global variable of the type:
GLOBAL VAR = 1 or 0 if you want to enable or disable both features
DRILL FUNCTION = iif(GLOBAL VAR = 1,"unsuppressed","suppressed") CHAMFER FUNCTION = iif(GLOBAL VAR = 1,"unsuppressed","suppressed")
You will only be able to remove functions by putting 1 or 0 in the "GLOBAL VAR"
Impossible to delete the functions in the design tree by hand knowing that they will be controlled by equations This is the closest thing you want, if I understood correctly...
But with your method, I have to go back to the equations to change this value from 1 to 0?
"Impossible to detect solidworks if a function is removed or not ... ", it's a shame because I wanted to make a config with the function activated and one without ... which then, with the equations, led to the rest of the equations...
It must be possible to configure the value of the variable. Otherwise, make a sketch with just one line and use the length dimension instead of the variable.