ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
KDKatarzyna Debowska04/03/2019

Hi All,

I don't know how to change the value of a global variable using a macro. I want my existing global variable, which results from a certain formula when its value is less than 1, assumes the value 0.

I tried to write the code in this way:

ElseIf "Ir" < 0 Then

Set swEquationMgr = Part.GetEquationMgr

swEquationMgr.SetEquationAndConfigurationOption 0, """Ir"" = 0", All, Empty