5 #######################################################################
6 # TKV3d, Dimensions - Possibility to customize text position was lost
7 # Test position setting for linear dimension
8 #######################################################################
11 vfont add [locate_data_file DejaVuSans.ttf] SansFont
13 set anImage1 $imagedir/${casename}_1.png
14 set anImage2 $imagedir/${casename}_2.png
17 vpoint circ_p1 0 10 30
18 vpoint circ_p2 30 10 0
19 vpoint circ_p3 60 10 30
20 vcircle circ circ_p1 circ_p2 circ_p3 0
22 vdimension diam -diameter -shapes circ -font SansFont
23 # Change text position
24 vmovedim diam 15 15 15
27 # Check that text position was changed and the text is not aligned
30 checkcolor $x_coord $y_coord 0.46 0.9 0
32 puts "Error : Text position of dimension is incorrect."
37 # Update dimension parameters and set automatic text positioning
38 vdimparam diam -flyout -5
41 # Check that text position was changed according to flyout
44 checkcolor $x_coord $y_coord 0.46 0.9 0
46 puts "Error : Text position of dimension after layout changing is incorrect."