1 if { [string compare $subgroup "ocaf_xml"] == 0 } {
2 puts "TODO ?OCC23768 ALL: Error : File is not valid"
3 puts "TODO ?OCC23768 ALL: Error at line"
6 set aTestName "caf001-H3"
11 # Add an attribute to a data framework
18 line aLine1 ${aSetX1} ${aSetY1} ${aSetZ1} ${aSetDX1} ${aSetDY1} ${aSetDZ1}
20 set aDumpLine1 [dump aLine1]
22 regexp {Origin[ \t]*:([-0-9.+eE]+), ([-0-9.+eE]+), ([-0-9.+eE]+)} ${aDumpLine1} full anOriginX_Line1 anOriginY_Line1 anOriginZ_Line1
23 regexp {Axis[ \t]*:([-0-9.+eE]+), ([-0-9.+eE]+), ([-0-9.+eE]+)} ${aDumpLine1} full anAxisDX_Line1 anAxisDY_Line1 anAxisDZ_Line1
26 SetAxis D ${aLabel} aLine1
28 # Close/Open the transaction
32 set aFile $WorkDirectory/${aTestName}.${FileSuffix}
36 # Restore the document
40 # Get a value of the attribute
41 set IsDone [catch {GetAxis DD ${aLabel} anAxis3} aResult]
42 if { ${IsDone} != 0 } {
43 puts "Error : Get a value of TDataStd_Axis attribute from restoring document"
46 set aDumpAxis3 [dump anAxis3]
47 regexp {Origin[ \t]*:([-0-9.+eE]+), ([-0-9.+eE]+), ([-0-9.+eE]+)} ${aDumpAxis3} full anOriginX_Line3 anOriginY_Line3 anOriginZ_Line3
48 regexp {Axis[ \t]*:([-0-9.+eE]+), ([-0-9.+eE]+), ([-0-9.+eE]+)} ${aDumpAxis3} full anAxisDX_Line3 anAxisDY_Line3 anAxisDZ_Line3
50 if { ${anOriginX_Line1} != ${anOriginX_Line3} ||
51 ${anOriginY_Line1} != ${anOriginY_Line3} ||
52 ${anOriginZ_Line1} != ${anOriginZ_Line3} ||
53 ${anAxisDX_Line1} != ${anAxisDX_Line3} ||
54 ${anAxisDY_Line1} != ${anAxisDY_Line3} ||
55 ${anAxisDZ_Line1} != ${anAxisDZ_Line3} } {
56 puts "Error : Get a value of TDataStd_Axis attribute from restoring document"