1 puts "================"
2 puts "0031825: Data Exchange, STEP - NULL dereference while re-exporting model with empty Datum description"
3 puts "================"
7 param write.step.schema AP242DIS
8 catch { Close D_First }
12 set Path ${imagedir}/${casename}.stp
13 ReadStep D_First [locate_data_file bug26689_nist_ctc_04_asme1_ap242.stp]
14 set baseDGTDump [XDumpNbDGTs D_First f]
16 WriteStep D_First $Path
19 set newDGTDump [XDumpNbDGTs D_Sec f]
20 XGetOneShape res D_Sec
24 checknbshapes res -face 518 -wire 623 -compound 1
27 set nb_ref [llength $newDGTDump]
28 for { set i 0 } { $i < $nb_ref } { incr i } {
29 set refstr [lindex $baseDGTDump $i]
30 set curstr [lindex $newDGTDump $i]
31 if {[string equal $refstr $curstr] == 0} {
36 puts "Error: wrong export DGT and PMI"
39 # set default parameter
40 param write.step.schema AP214IS