1set aTestName "xcaf200-A1"
2puts $aTestName
3
4# Add an attribute to a data framework
5set aLabel 0:1:1:1
6Label D $aLabel
7set aValue 13.777
8XSetArea D $aLabel $aValue
9
10# Close/Open the transaction
11NewCommand D
12
13# save result for check after retrieval
14set area_before [XGetArea D $aLabel]
15if { ${area_before} != ${aValue} } {
16	puts "Error : XSetArea or XGetArea"
17} else {
18
19    # Save the document
20    set aFile $WorkDirectory/${aTestName}.${FileSuffix}
21
22    SaveToFile D $aFile
23
24    # Restore the document
25    Close D
26    Open ${aFile} DD
27
28    # Get a value of the attribute
29    set IsDone [catch {set area_after [XGetArea DD $aLabel]} aResult]
30    if { ${IsDone} != 0 || ${area_after} != ${area_before} } {
31	puts "Error : Get a value of XCAFDoc_Area attribute from restoring document"
32    }
33}
34