4 # Testing attribute: User defined (additional GUID) TDataStd_Real
6 # Testing command: SetReal
7 # Testing command: GetReal
12 # Add an attribute to a data framework
15 set aGuid1 "12e94551-6dbc-11d4-b9c8-0060b0ee281b"
16 set aGuid2 "12e94552-6dbc-11d4-b9c8-0060b0ee281b"
18 SetReal D ${aLabel} ${aSetAttr1} ${aGuid1}
19 SetReal D ${aLabel} ${aSetAttr2} ${aGuid2}
21 # Close/Open the transaction
25 set aFile ${imagedir}/caf001-B6.cbf
28 if { ![file exists ${aFile}] } {
29 puts "There is not ${aFile} file; SaveAs command: Error"
32 #catch {exec chmod 777 ${aFile}}
34 # Restore the document
38 # Get a value of the attribute #1
39 set IsDone [catch {set aGetAttr3 [GetReal DD ${aLabel} ${aGuid1}]} aResult]
40 if { ${IsDone} != 0 ||
41 ${aSetAttr1}!=${aGetAttr3} } {
43 puts "aSetAttr1=${aSetAttr1} aGetAttr3=${aGetAttr3}"
44 puts "Get a value of the first TDataStd_Real attribute from restoring document: Error"
48 # Get a value of the attribute #2
49 set IsDone [catch {set aGetAttr4 [GetReal DD ${aLabel} ${aGuid2}]} aResult]
50 if { ${IsDone} != 0 ||
51 ${aSetAttr2}!=${aGetAttr4} } {
53 puts "aSetAttr2=${aSetAttr2} aGetAttr4=${aGetAttr4}"
54 puts "Get a value of the second TDataStd_Real attribute from restoring document: Error"
58 puts "Get a value of user defined TDataStd_Integer attributes from restoring document: OK"