0031939: Coding - correction of spelling errors in comments [part 7]
[occt.git] / tests / bugs / demo / bug14673_2
CommitLineData
94f16a89 1puts "# ============================================================"
2puts "# 0014673: Provide true support for Unicode symbols"
3puts "# ============================================================"
4puts ""
5puts "# Check that different file open / save commands can deal with Unicode"
6
7pload ALL
8
9# Name means "Japanese"
10set filePrefix "$imagedir/${casename}_日本語"
11
12proc checkFile {filepath} {
13 if { [file exists $filepath] } {
7b5e532f 14 puts "File $filepath is created, OK"
94f16a89 15 } else {
16 puts "Error: Could not find file $filepath"
17 }
18}
19
20puts "# OCAF documents"
21NewDocument Xml XmlOcaf
22SaveAs Xml ${filePrefix}.xml
23checkFile ${filePrefix}.xml
24Close Xml
25Open ${filePrefix}.xml Xml
26
27NewDocument Bin BinOcaf
28SaveAs Bin ${filePrefix}.cbf
29checkFile ${filePrefix}.cbf
30Close Bin
31Open ${filePrefix}.cbf Bin
32
33puts "# STEP and IGES"
34box b 10 10 10
35NewDocument XDE BinOcaf
36XAddShape XDE b
37
38WriteStep XDE ${filePrefix}.stp
39checkFile ${filePrefix}.stp
40ReadStep Step ${filePrefix}.stp
41
42WriteIges XDE ${filePrefix}.igs
43checkFile ${filePrefix}.igs
44ReadIges Iges ${filePrefix}.igs