mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 01:58:22 +08:00
# Add test to verify import * Note: Each layer contains a valid name, but only one contains a link to the shape, so .step file contains only one valid Layer.
16 lines
447 B
Plaintext
16 lines
447 B
Plaintext
puts "# ====================================================================="
|
|
puts "# 0028345: Data Exchange - Reading STEP model using STEPCAF crashes"
|
|
puts "# ====================================================================="
|
|
puts ""
|
|
|
|
pload DCAF
|
|
ReadStep D_1 [locate_data_file bug28345_30338.stp]
|
|
|
|
# Check imported names
|
|
set info [XGetAllLayers D_1]
|
|
if { [regexp "COMPONENTS" $info] != 1 } {
|
|
puts "Error : wrong layer name"
|
|
}
|
|
|
|
Close D_1
|