Convert Angle To String

Convert Angle To String
 1angle = 100
 2
 3# Set the format of angles to degrees
 4impact.units.angle_format = ipAngleFormat.afDegrees
 5
 6# Convert an arbitary value to a string
 7angle_string = impact.system.convertor.angle_as_string(angle)
 8
 9# Output the string
10impact.gui.output_toolbox.add(angle_string)
11
12# Set the format of angles to radians
13impact.units.angle_format = ipAngleFormat.afRadians
14
15# Convert an arbitary value to a string
16angle_string = impact.system.convertor.angle_as_string(angle)
17
18# Output the string
19impact.gui.output_toolbox.add(angle_string)
20
21# Set the format of angles to gradients
22impact.units.angle_format = ipAngleFormat.afGradients
23
24# Convert an arbitary value to a string
25angle_string = impact.system.convertor.angle_as_string(angle)
26
27# Output the string
28impact.gui.output_toolbox.add(angle_string)