0029525: PMI dimension names
[occt.git] / tests / bugs / xde / bug29525
1
2 # Step file
3 set filename [locate_data_file bug29525_rev_part_neu_01.prt_converted_from_datakit.stp]
4
5 # Read file
6 if { [catch { ReadStep D ${filename} } result] } {
7   puts "ERROR: Couldn't read ${filename} file"
8 }
9
10 # Static data
11 set L 0:1:4:35
12 set N_expected "AE19"
13 set N_modified "AE19_modified"
14
15 # Get semantic name
16 set N0 [XGetGDTSemanticName D ${L}]
17 if { [string compare ${N0} ${N_expected}] != 0 } {
18   puts "ERROR: OCC29525 is reproduced."
19 }
20
21 # Set semantic name
22 XSetGDTSemanticName D ${L} ${N_modified}
23 set N1 [XGetGDTSemanticName D ${L}]
24 if { [string compare ${N1} ${N_modified}] != 0 } {
25   puts "ERROR: Couldn't modify semantic name!"
26 }