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/bug30789
ika 3b739e69c9 0030789: Data Exchange - Some names are lost during STEP import
Add importing name from PRODUCT_DEFINITION_WITH_ASSOCIATED_DOCUMENTS STEP entity.
Update test cases with files contained this entity.
2019-06-20 15:20:50 +03:00

34 lines
895 B
Plaintext

puts "==============================================================="
puts "0030789: Data Exchange - Some names are lost during STEP import"
puts "==============================================================="
puts ""
# Load file
pload DCAF
ReadStep D [locate_data_file bug30789.stp]
# Check several names came from problematic entities
set name [GetName D 0:1:1:10]
if {$name != "F5347130221100"} {
puts "Error: name of entity is lost."
}
set name [GetName D 0:1:1:20]
if {$name != "A5397301720500"} {
puts "Error: name of entity is lost."
}
set name [GetName D 0:1:1:34]
if {$name != "F5349193000400-CUT01"} {
puts "Error: name of entity is lost."
}
set name [GetName D 0:1:1:48]
if {$name != "F5349195500100-FLX05"} {
puts "Error: name of entity is lost."
}
set name [GetName D 0:1:1:74]
if {$name != "F5349193500000-FLX10"} {
puts "Error: name of entity is lost."
}
Close D