4 # Testing attribute: TDataStd_Comment
6 # Testing command: SetComment
7 # Testing command: GetComment
12 # Add an attribute to a data framework
13 set aSetAttr1 "New Attribute"
16 SetComment D ${aLabel} ${aSetAttr1}
18 # Close/Open the transaction
22 set aFile ${imagedir}/caf001-F3.cbf
25 if { ![file exists ${aFile}] } {
26 puts "There is not ${aFile} file; SaveAs command: Error"
29 #catch {exec chmod 777 ${aFile}}
31 # Restore the document
35 # Get a value of the attribute
36 set IsDone [catch {set aGetAttr3 [GetComment DD ${aLabel}]} aResult]
37 if { ${IsDone} != 0 ||
38 ${aSetAttr1}!=${aGetAttr3} } {
40 puts "aSetAttr1=${aSetAttr1} aGetAttr3=${aGetAttr3}"
41 puts "Get a value of TDataStd_Comment attribute from restoring document: Error"
44 puts "Get a value of TDataStd_Comment attribute from restoring document: OK"