| 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 } | |
| readbrep ${filename} S_First | |
| XNewDoc D_First | |
| XAddShape D_First S_First | |
| set file_path ${imagedir}/${casename}.brep | |
| WriteFile D_First $file_path | |
| readbrep ${filename} S_Second | |
| checknbshapes S_Second -ref [nbshapes S_First] | |
| file delete $file_path | |
| Close D_First |