1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/bugs/caf/bug26290_newattribute_1
abv 7a1b96cb98 0023639: Exception on attempt to save to XmlOcaf format
Variant FULL is removed from the options of DRAW command pload; ALL can be used in all cases
2016-11-17 14:41:50 +03:00

48 lines
873 B
Plaintext

# OCAF VISUALIZATION
# Presentation attributes
#
# Testing attributes: TPrsStd_AISPresentation & TDataXtd_Presentation
#
# Testing command: standard set of commands
#
# The test checks joint work of these attributes (including Undo/Redo) and keeps result in 'bug26290_new_1.cbf' file
pload OCAF VISUALIZATION
box b 100 200 300
NewDocument D BinOcaf
UndoLimit D 100
NewCommand D
set Lab1 [Label D 0:1:1]
SetShape D $Lab1 b
AISInitViewer D
vsetdispmode 1
AISSet D $Lab1 NS
AISDisplay D $Lab1
vfit
NewCommand D
Undo D 1
Redo D 1
AISColor D $Lab1 11
NewCommand D
SaveAs D $imagedir/bug26290_new_1.cbf
AISErase D $Lab1
## DFBrowse D # - for debug purpose only
AISUnset D $Lab1
NewCommand D
Undo D 1
Redo D 1
Close D
## reopen just kept file
Open $imagedir/bug26290_new_1.cbf D
## DFBrowse D
AISInitViewer D
vsetdispmode 1
vfit
AISColor D $Lab1 9
AISErase D $Lab1
Close D