1 puts "================"
3 puts "================"
5 #######################################################################################
6 # Create Attribute Delta depending on actual change of the attribute
7 #######################################################################################
8 # Case 8 (TDataStd_IntegerArray)
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 TDataStd_IntegerArray
32 SetIntArray D ${Label} ${From} ${To} ${IntegerArray1} ${IntegerArray2} 0
33 ############################################
35 SetReal D ${Label} ${Real1}
36 set list [DumpCommand D]
40 set list [DumpCommand D]
42 ############################################
43 # Set old value for TDataStd_IntegerArray
44 SetIntArray D ${Label} ${From} ${To} ${IntegerArray1} ${IntegerArray2} 0
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 length [llength ${list}]
58 puts "length = ${length}"
59 puts "good_length = ${good_length}"
61 if { ${length} != ${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)"