(
local core = (dotNetClass "Autodesk.Max.GlobalInterface").Instance.coreinterface7
local angles = #( 1, 5, 15, 45, 90 )
local index = amax 1 (findItem angles core.SnapAngle_)
core.SnapAngle_ = if (index + 1) > angles.count then angles[1] else angles[ index + 1 ]
displayTempPrompt ("Snap Angle: " + (int core.SnapAngle_) as string+ "°") 1500
)