1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/step/bug33815
dpasukhi dbba6f1289 Data Exchange - Losing attributes on NonManifold STEP #284
Move step related processing from XSBase to STP module.
Added history apply after reading of NonManifold
2025-01-24 09:51:54 +00:00

31 lines
676 B
Plaintext

puts "===================================="
puts "0033815: Data Exchange, Step Export - No names in STEP file when writing in non-manifold mode"
puts "===================================="
puts ""
pload OCAF
Close D -silent
XNewDoc D
box box 1 1 1
XAddShape D box
param write.step.nonmanifold 1
SetName D 0:1:1:1 "a'''\\b\n\t\\c\\\\\\\\"
set original_name [GetName D 0:1:1:1]
WriteStep D "$imagedir/${casename}.stp"
Close D
ReadStep D "$imagedir/${casename}.stp"
set imported_name [GetName D 0:1:1:1]
file delete "$imagedir/${casename}.stp"
if {$original_name != $imported_name} {
puts "Error: 'Incorrect exporting name: $original_name != $imported_name"
}
Close D