0023950: Names and visibility of points not saved when writing XCAF Document into...
[occt.git] / tests / bugs / xde / bug23950
CommitLineData
0c674248 1puts "=========="
2puts "OCC23950"
3puts "=========="
4puts ""
5#################################################################################
6# Names and visibility of points not saved when writing XCAF Document into STEP
7#################################################################################
8
9pload QAcommands
10
1fa7cb8c 11#switch on writing of vertices names and styles
12param write.step.vertex.mode 1
13
14set aFile ${imagedir}/bug23950.step
15
16catch {file delete ${aFile}}
17
18set info [OCC23950 ${aFile}]
0c674248 19
20if {[regexp "Write Done" $info] != 1} {
21 puts "Error: file was not written"
22} else {
23 puts "OK: file was written"
24}
25
26set is23950fixed "FALSE"
1fa7cb8c 27set file23950 [open ${aFile} RDONLY]
0c674248 28while {[eof $file23950] == 0} {
29 set file23950line [string trim [gets $file23950]]
30 if {[string first "Point1" $file23950line] != -1} {
31 set is23950fixed "TRUE"
32 }
33}
34close $file23950
35
36if {[string compare $is23950fixed "FALSE"] == 0} {
37 puts "ERROR: OCC23950 is reproduced"
38}
1fa7cb8c 39
40#return default behavior
41param write.step.vertex.mode 0