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

    How to read the angle mode from within a macro?


      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")


        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!