3 Replies Latest reply on Jan 20, 2015 2:09 PM by johnr

    How to read the angle mode from within a macro?

    johnr

      I want to create a PADS layout macro that toggles the angle mode: when the angle mode is "Diagonal" (modeless command "ad"), I want it to switch to "Any Angle Mode" (modeless command "aa").  Here's my first attempt:

      ___________________________________

      x = AngleMode.value

      msgbox(x)           // for debugging

      if x="Any Angle" then

        Application.ExecuteCommand("Diagonal Angle Mode")

      else

        Application.ExecuteCommand("Any Angle Mode")

      end if

      ___________________________________

       

      This does not work, because "AngleMode.value" apparently is not a recognized entity.  How can I read the current angle mode from within the macro?  Thanks!