1 puts "================"
3 puts "================"
5 #######################################################################################
6 # Create Attribute Delta depending on actual change of the attribute
7 #######################################################################################
8 # Case 10 (TDataStd_PatternStd)
9 #######################################################################################
11 # Create a new document and set UndoLimit
12 NewDocument D MDTV-Standard
15 # Create a label and set attributes
19 ############################################
27 box Box ${X} ${Y} ${Z} ${DX} ${DY} ${DZ}
29 # Set a shape to the label
31 SetShape D ${BoxLabel} Box
33 # Set a real attribute
35 set RealPattern 123.456789
36 SetReal D ${RealLabel} ${RealPattern}
38 # Set an integer attribute
40 set IntegerPattern 123456789
41 SetInteger D ${IntegerLabel} ${IntegerPattern}
45 ############################################
49 set modified_attribute TDataStd_Real
51 ############################################
52 # Set TDataStd_PatternStd
54 SetPattern D ${Label} ${signature} ${BoxLabel} ${RealLabel} ${IntegerLabel}
55 ############################################
57 SetReal D ${Label} ${Real1}
58 set list [DumpCommand D]
62 set list [DumpCommand D]
64 ############################################
65 # Set old value for TDataStd_PatternStd
66 SetPattern D ${Label} ${signature} ${BoxLabel} ${RealLabel} ${IntegerLabel}
67 ############################################
69 # Set new value for TDataStd_Real
70 SetReal D ${Label} ${Real2}
71 set list [DumpCommand D]
75 set list [DumpCommand D]
78 set ll [llength ${list}]
81 puts "good_length = ${good_length}"
83 if { ${ll} != ${good_length} } {
84 puts "OCC2932 Error (case 1)"
86 set name_attribute [lindex ${list} [expr ${good_length} - 1]]
87 puts "name_attribute = ${name_attribute}"
88 puts "modified_attribute = ${modified_attribute}"
89 if {[string compare ${name_attribute} ${modified_attribute}] == 0} {
92 puts "OCC2932 Error (case 2)"