1 puts "================"
3 puts "================"
5 #######################################################################################
6 # Create Attribute Delta depending on actual change of the attribute
7 #######################################################################################
8 # Case 23 (TPrsStd_Position)
9 #######################################################################################
11 # Create a new document and set UndoLimit
12 NewDocument D MDTV-Standard
15 # Create a label and set attributes
19 ############################################
24 ############################################
28 set modified_attribute TDataStd_Real
30 ############################################
31 # Set TPrsStd_Position
32 SetPosition D ${Label} ${X} ${Y} ${Z}
33 ############################################
35 SetReal D ${Label} ${Real1}
36 set list [DumpCommand D]
40 set list [DumpCommand D]
42 ############################################
43 # Set old value for TPrsStd_Position
44 SetPosition D ${Label} ${X} ${Y} ${Z}
45 ############################################
47 # Set new value for TDataStd_Real
48 SetReal D ${Label} ${Real2}
49 set list [DumpCommand D]
53 set list [DumpCommand D]
56 set ll [llength ${list}]
59 puts "good_length = ${good_length}"
61 if { ${ll} != ${good_length} } {
62 puts "OCC2932 Error (case 1)"
64 set name_attribute [lindex ${list} [expr ${good_length} - 1]]
65 puts "name_attribute = ${name_attribute}"
66 puts "modified_attribute = ${modified_attribute}"
67 if {[string compare ${name_attribute} ${modified_attribute}] == 0} {
70 puts "OCC2932 Error (case 2)"