puts "============" puts "0032821: DEWrapper - Implementation of a common toolkit for importing and exporting CAD files" puts "============" puts "" catch { Close D_First } catch { Close D_Second } XOpen ${filename} D_First XGetOneShape S_First D_First set file_path ${imagedir}/${casename}.xbf writefile S_First $file_path -conf "provider.XCAF.OCC.append : 1 " ReadFile D_Second $file_path XGetOneShape S_Second D_Second checknbshapes S_Second -ref [nbshapes S_First] Close D_First Close D_Second file delete $file_path