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