1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0025694: Change STEP exporter to use AP214 IS by default

Test-case for issue #25694
This commit is contained in:
Roman Lygin 2015-01-22 16:42:58 +03:00 committed by bugmaster
parent 55b05039a4
commit 71595c2970
2 changed files with 21 additions and 1 deletions

View File

@ -85,7 +85,7 @@ STEPControl_Controller::STEPControl_Controller ()
Interface_Static::Init("step","write.step.schema",'&',"eval AP214DIS");
Interface_Static::Init("step","write.step.schema",'&',"eval AP203");
Interface_Static::Init("step","write.step.schema",'&',"eval AP214IS");
Interface_Static::SetCVal("write.step.schema","AP214CD");
Interface_Static::SetCVal("write.step.schema","AP214IS");
// Type of Product Definition for reading
// Note: the numbers should be consistent with function FindShapeReprType()

20
tests/bugs/step/bug25694 Normal file
View File

@ -0,0 +1,20 @@
puts "========"
puts "OCC25694"
puts "========"
puts ""
###################################################
# Change STEP exporter to use AP214 IS by default
###################################################
box b 1 2 3
stepwrite a b
set bug_info [data g]
set bug_info [string trim [string range $bug_info [string first "FILE_SCHEMA" $bug_info] [expr {[string length $bug_info] - 1}]]]
set bug_info [string trim [string range $bug_info 0 [string first ";" $bug_info]]]
set bug_info [string trim [string range $bug_info [expr {[string first "'" $bug_info] + 1}] [expr {[string last "'" $bug_info] - 1}]]]
if {$bug_info != "AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }"} {
puts "ERROR: OCC25694 is reproduced."
}