DistanceFormat

DistanceFormat
 1# select all visible entities
 2active_block.select_all()
 3
 4# delete the selected entities
 5active_block.delete_selected()
 6
 7# clear the output tool box
 8impact.gui.output_toolbox.clear()
 9
10# set impact.units to inches
11impact.units.distance_format = ipDistanceFormat.dfInches
12
13# draw some geometry
14active_block.move_ad(0,0)
15line = active_block.line_ad(100,0)
16
17# set impact.units to mm
18impact.units.distance_format = ipDistanceFormat.dfMillimetres
19
20# display the length of the line
21impact.gui.output_toolbox.add(line.length)