1 puts "================"
3 puts "================"
6 # Note: Numerical control of setting width
11 NewDocument D MDTV-Standard
15 # Set NamedShape attribute
18 SetShape D ${aLabel1} aBox1
20 # Initialize 3D viewer
23 # Add AISPresentation attribute with parameter NS
24 AISSet D ${aLabel1} NS
26 # Close/Open transaction
29 set list [OCC1032_AISWidth D ${aLabel1}]
30 set AISWidth1 [lindex ${list} [expr [llength ${list}] - 1] ]
32 # Display presentation of NamedShape in the viewer
33 AISDisplay D ${aLabel1}
35 # Close/Open transaction
40 OCC1032_AISWidth D ${aLabel1} ${SetWidth}
42 set list [OCC1032_AISWidth D ${aLabel1}]
43 set AISWidth2 [lindex ${list} [expr [llength ${list}] - 1] ]
45 # Close/Open transaction
54 set list [OCC1032_AISWidth D ${aLabel1}]
55 set AISWidth3 [lindex ${list} [expr [llength ${list}] - 1] ]
63 set list [OCC1032_AISWidth D ${aLabel1}]
64 set AISWidth4 [lindex ${list} [expr [llength ${list}] - 1] ]
67 puts "AISWidth1 = ${AISWidth1}"
68 puts "AISWidth2 = ${AISWidth2}"
69 puts "AISWidth3 = ${AISWidth3}"
70 puts "AISWidth4 = ${AISWidth4}"
74 if { ${AISWidth1} != ${DefaultAISWidth} } {
75 puts "OCC1032_AISWidth command: Error (case 1)"
78 if { ${AISWidth2} != ${SetWidth} } {
79 puts "OCC1032_AISWidth command: Error (case 2)"
82 if { ${AISWidth3} != ${DefaultAISWidth} } {
83 puts "OCC1032_AISWidth command: Error (case 3)"
86 if { ${AISWidth4} != ${SetWidth} } {
87 puts "OCC1032_AISWidth command: Error (case 4)"
91 if { ${status} == 0} {
92 puts "OCC1032_AISWidth command: OK"