AnsweredAssumed Answered

How to read the angle mode from within a macro?

Question asked by johnr on Jan 20, 2015
Latest reply on Jan 20, 2015 by 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!

Outcomes