1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/tests/bugs/step/bug32049
dpasukhi 96049f2e3d 0032049: Data Exchange - STEP file import problems
- Added checking for null objects
- Added support to find layers according to visible attr
- Fixed problem with same names of layers:
 Now, layers are grouped by names and visibility parameter
2021-01-22 13:16:22 +03:00

22 lines
486 B
Plaintext

puts "========================"
puts "0032049: Data Exchange - STEP file import problems"
puts "========================"
pload OCAF
catch { Close D }
# Read file
ReadStep D [locate_data_file bug32049_sp7_04dx_242.stp]
# Check file
set xst [ XStat D ]
if { [regexp {Number of labels with layer link = 191} $xst] != 1 } {
puts "Error: Incorrect number of layer references"
}
if { [regexp {Number of layers = 5} $xst] != 1 } {
puts "Error: incorrect number of layers"
}
Close D