mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031466: Data Exchange - Cannot import layers from STeP file (7.4.0 regression)
Return possibility to find layers fir subshapes.
This commit is contained in:
22
tests/bugs/xde/bug31466
Normal file
22
tests/bugs/xde/bug31466
Normal file
@@ -0,0 +1,22 @@
|
||||
puts "================================================================================="
|
||||
puts " 0031466: Data Exchange - Cannot import layers from STeP file (7.4.0 regression)"
|
||||
puts "================================================================================="
|
||||
puts ""
|
||||
|
||||
pload DCAF
|
||||
|
||||
XNewDoc D
|
||||
box b 1 1 1
|
||||
explode b f
|
||||
XAddShape D b
|
||||
XAddSubShape D b_1 0:1:1:1
|
||||
XAddLayer D myLayer
|
||||
XSetLayer D 0:1:1:1:1 myLayer
|
||||
|
||||
# check layer
|
||||
set layer [XGetLayers D b_1]
|
||||
if {$layer != "\"myLayer\" "} {
|
||||
puts "Error: wrong result layer searching."
|
||||
}
|
||||
|
||||
Close D
|
Reference in New Issue
Block a user