0032144: Draw Harness - add -silent option to command Close
[occt.git] / tests / bugs / step / bug31825
CommitLineData
692decba 1puts "================"
2puts "0031825: Data Exchange, STEP - NULL dereference while re-exporting model with empty Datum description"
3puts "================"
4puts ""
5
6pload OCAF
7param write.step.schema AP242DIS
395d00e0 8Close D_First D_Sec -silent
692decba 9
10# Read file
11set Path ${imagedir}/${casename}.stp
12ReadStep D_First [locate_data_file bug26689_nist_ctc_04_asme1_ap242.stp]
13set baseDGTDump [XDumpNbDGTs D_First f]
14
15WriteStep D_First $Path
16ReadStep D_Sec $Path
17file delete $Path
18set newDGTDump [XDumpNbDGTs D_Sec f]
19XGetOneShape res D_Sec
20
21# Checking
22checkshape res
23checknbshapes res -face 518 -wire 623 -compound 1
24
25set isOK 1
26set nb_ref [llength $newDGTDump]
27for { set i 0 } { $i < $nb_ref } { incr i } {
28 set refstr [lindex $baseDGTDump $i]
29 set curstr [lindex $newDGTDump $i]
30 if {[string equal $refstr $curstr] == 0} {
31 set isOK 0
32 }
33}
34if {$isOK == 0} {
35 puts "Error: wrong export DGT and PMI"
36}
37
38# set default parameter
39param write.step.schema AP214IS