2 # Presentation attributes
4 # Testing attribute: TPrsStd_AISPresentation
6 # Testing command: AISSet
8 #Sometimes this error is inside a log file, but it is outside in other case. The '?' character manage it.
11 # Set NamedShape attribute
14 SetShape D ${aLabel} aBox1
16 # Initialize 3D viewer
19 # Add AISPresentation attribute with parameter NS
22 # Display presentation of NamedShape in the viewer
23 AISDisplay D ${aLabel}
26 set aFile ${imagedir}/caf003-A4.std
29 if { ![file exists ${aFile}] } {
30 puts "There is not ${aFile} file; SaveAs command: Error"
33 #catch {exec chmod 777 ${aFile}}
35 # Restore the document
40 # Initialize 3D viewer
43 ########## Add AISPresentation attribute with parameter NS
44 ##########AISSet DD ${aLabel} NS
46 # Display presentation of NamedShape in the viewer
47 set IsDone [catch {AISDisplay DD ${aLabel}} aResult]
48 if { ${IsDone} != 0 } {
50 puts "Get a value of TPrsStd_AISPresentation attribute from restoring document: Error"
54 puts "There is the box in the viewer"