예제 #1
0
 /// <summary>
 /// Add a custom expected type.
 /// </summary>
 /// <param name="exponent">The exponent of the type.</param>
 /// <param name="unitName">The name of the base unit.</param>
 public void AddCustomExpectedType(int exponent, string unitName)
 {
     ExpectedTypes.Add(new Tuple <int, UnitType, string>(exponent, UnitType.UT_Custom, unitName));
 }
예제 #2
0
 /// <summary>
 /// Add a standard expected type.
 /// </summary>
 /// <param name="exponent">The exponent of the type.</param>
 /// <param name="baseUnitType">The base unit type.</param>
 public void AddExpectedType(int exponent, UnitType baseUnitType)
 {
     ExpectedTypes.Add(new Tuple <int, UnitType, string>(exponent, baseUnitType, null));
 }
예제 #3
0
파일: IFCUnit.cs 프로젝트: zhoyq/revit-ifc
 /// <summary>
 /// Add a standard expected type.
 /// </summary>
 /// <param name="exponent">The exponent of the type.</param>
 /// <param name="specTypeId">The spec identifier.</param>
 public void AddExpectedType(int exponent, ForgeTypeId specTypeId)
 {
     ExpectedTypes.Add(new Tuple <int, ForgeTypeId, string>(exponent, specTypeId, null));
 }
예제 #4
0
파일: IFCUnit.cs 프로젝트: zhoyq/revit-ifc
 /// <summary>
 /// Add a custom expected type.
 /// </summary>
 /// <param name="exponent">The exponent of the type.</param>
 /// <param name="unitName">The name of the base unit.</param>
 public void AddCustomExpectedType(int exponent, string unitName)
 {
     ExpectedTypes.Add(new Tuple <int, ForgeTypeId, string>(exponent, SpecTypeId.Custom, unitName));
 }
예제 #5
0
 /// <summary>
 /// Add a custom expected type.
 /// </summary>
 /// <param name="exponent">The exponent of the type.</param>
 /// <param name="unitName">The name of the base unit.</param>
 public void AddCustomExpectedType(int exponent, string unitName)
 {
     ExpectedTypes.Add(Tuple.Create(exponent, SpecTypeId.Custom, unitName));
 }