AnsweredAssumed Answered

VB If statement in Equations

Question asked by jacob may on Oct 31, 2012
Latest reply on Nov 1, 2012 by Jerry Steiger

I am trying to suppress a part in an assembly using equations in solidworks 2012. I have only been working with 2012 for a whole two days and the equation area seems to be completely overhauled. I have found an area in solidworks help covering this but cannot seem to get the syntax right to make it work (Visual Basic If Function) is what solidworks help is calling it. Here is what i am needing to do


If "Ring 3 Height" = 0 then suppress "Panel_03"


"Ring 3 Height" is a Global Variable that I am setting using a .txt file

"Panel_03" is the part in the assembly that i am trying to suppress


I have never written any kind of if statement in an equation, i  have always used a macro to do this sort of work for me.


I should also note that i am trying to do this under Features in the equations area.