2 puts "CR24412: TKV3d, Dimensions - Possibility to customize text position was lost"
3 puts "Test position setting for linear dimension"
7 pload MODELING VISUALIZATION
8 vfont add [locate_data_file DejaVuSans.ttf] SansFont
11 vpoint circ_p1 0 10 30
12 vpoint circ_p2 30 10 0
13 vpoint circ_p3 60 10 30
14 vcircle circ circ_p1 circ_p2 circ_p3 0
16 vdimension diam -diameter -shapes circ -font SansFont
17 # Change text position
18 vmovedim diam 15 15 15
21 # Check that text position was changed and the text is not aligned
24 checkcolor $x_coord $y_coord 0.46 0.9 0
25 if { $stat != 1 } { puts "Error : Text position of dimension is incorrect." }
27 vdump $imagedir/${casename}_1.png
29 # Update dimension parameters and set automatic text positioning
30 vdimparam diam -flyout -5
33 # Check that text position was changed according to flyout
36 checkcolor $x_coord $y_coord 0.46 0.9 0
37 if { $stat != 1 } { puts "Error : Text position of dimension after layout changing is incorrect." }
39 vdump $imagedir/${casename}_2.png