|
最近研究了一下表达式和单位系统,然后为了查看UG中可用的单位,于是就写了一个简单的程序测试了一下,结果发现了一些搞笑的翻译,很有可能是中文版的汉化问题。
代码是这样的:
- Session theSession = Session.GetSession();
- UI theUI=UI.GetUI();
- Part workPart = theSession.Parts.Work;
- UnitCollection uc = workPart.UnitCollection;
- ExpressionCollection ec = workPart.Expressions;
- StreamWriter sw=new StreamWriter(@"C:\Measures In NX.txt");
- foreach (string s in uc.GetMeasures())
- {
- sw.WriteLine(s);
- foreach (Unit u in uc.GetMeasureTypes(s))
- sw.WriteLine("Name:" + u.Name + "\t\t\tAbbreviation:" + u.Abbreviation);
- sw.WriteLine("--------------------------------");
- }
复制代码 然后我的到文本文件内容是这样的,注意红色的内容,括号内容是我的疑问:
长度
Name:米 Abbreviation:m
Name:毫米 Abbreviation:mm
Name:英寸 Abbreviation:in
Name:英尺 Abbreviation:ft
Name:CentiMeter Abbreviation:cm
(为什么前面用中文的米,后面用英文的CentiMeter,而不是厘米?可能主单位都翻译了,但是非主要单位就没有翻译?)
Name:KiloMeter Abbreviation:km
Name:Mile Abbreviation:mi
Name:Micron Abbreviation:micron
Name:NanoMeter Abbreviation:nm
Name:Angstrom Abbreviation:埃(这里又是中文……)
--------------------------------
面积
Name:平方米 Abbreviation:m^2
Name:SquareMilliMeter Abbreviation:mm^2
Name:SquareInch Abbreviation:in^2
Name:SquareFeet Abbreviation:ft^2
Name:SquareCentiMeter Abbreviation:cm^2
--------------------------------
体积
Name:立方米 Abbreviation:m^3
Name:CubicMilliMeter Abbreviation:mm^3
Name:CubicInch Abbreviation:in^3
Name:CubicFeet Abbreviation:ft^3
Name:CubicCentiMeter Abbreviation:cm^3
--------------------------------
质量
Name:千克 Abbreviation:kg
Name:Gram Abbreviation:g
Name:Tonne Abbreviation:t
Name:Slug Abbreviation:slug(lbf-sec^2/ft)
Name:PoundSecondsSquaredPerInch Abbreviation:lbf-sec^2/in
Name:PoundMass Abbreviation:lbm
Name:KilogramForceSecondsSquaredPerMeter Abbreviation:kgf-sec^2/m
Name:KilogramForceSecondsSquaredPerMilliMeter Abbreviation:kgf-sec^2/mm
--------------------------------
质量密度
Name:千克/立方米 Abbreviation:kg/m^3
Name:KilogramPerCubicMilliMeter Abbreviation:kg/mm^3
Name:TonnePerCubicMeter Abbreviation:T/m^3
Name:TonnePerCubicMilliMeter Abbreviation:T/mm^3
Name:PoundsSecondSquaredPerInchFourth Abbreviation:lbf-sec^2/in^4
Name:SlugsPerCubicFeet Abbreviation:Slug/ft^3
Name:PoundMassperCubicInch Abbreviation:lbm/in^3
--------------------------------
疲劳强度系数
Name:MilliNewtonPerSquareMilliMeter Abbreviation:mN/mm^2(kPa)
Name:NewtonPerSquareMilliMeter Abbreviation:N/mm^2(MPa)
Name:Pascals Abbreviation:Pa(N/m^2)
Name:PoundForcePerSquareInch Abbreviation:lbf/in^2(psi)
--------------------------------
时间
Name:第二个(这个我就不吐槽了) Abbreviation:sec
Name:分 Abbreviation:min
Name:小时 Abbreviation:hr
--------------------------------
角度
Name:弧度 Abbreviation:弧度
Name:度 Abbreviation:度
后面还有一些,我就不都贴出来了,不然长度超标了……
|
|