0 Replies Latest reply on Mar 6, 2014 2:12 PM by Chris Johnson


    Chris Johnson

      Hi All,


      Im having a little trouble setting the AngularEquationUnits in my macro.


      Here is how im trying to set it:


         swEquationMgr = swModel.GetEquationMgr


              'Set units to degrees

              EQunits = swEquationMgr.AngularEquationUnits = 1


              'add Equation at index 0

              MyEquation = swEquationMgr.Add2(0, """D1@ID Chamfer1""  = " & "((""WALL@LAYOUT""" & " / 2) " & " - .03)" & "/Tan (""D2@ID Chamfer1"")", True)

              If MyEquation <> 0 Then MsgBox("Equation D1 @ ID Chamfer 1 Failed", MsgBoxStyle.MsgBoxSetForeground)



      when i run the macro everything looks fine but when I open the equation manager, I can see that one of them didnt solve and the units are set to radians.


      my question is: is my code incorrect or do i need to set that parameter each time I add another Equation?




      Thank you,