parseFields() protected static method

protected static parseFields ( IfcBuildingElementType t, List arrFields, int &ipos ) : void
t IfcBuildingElementType
arrFields List
ipos int
return void
Ejemplo n.º 1
0
 internal static void parseFields(IfcWindowType s, List <string> arrFields, ref int ipos)
 {
     IfcBuildingElementType.parseFields(s, arrFields, ref ipos);
     s.mPredefinedType              = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), arrFields[ipos++].Replace(".", ""));
     s.mPartitioningType            = (IfcWindowTypePartitioningEnum)Enum.Parse(typeof(IfcWindowTypePartitioningEnum), arrFields[ipos++].Replace(".", ""));
     s.mParameterTakesPrecedence    = ParserSTEP.ParseBool(arrFields[ipos++]);
     s.mUserDefinedPartitioningType = arrFields[ipos++];
 }
Ejemplo n.º 2
0
 internal static void parseFields(IfcWallType t, List <string> arrFields, ref int ipos)
 {
     IfcBuildingElementType.parseFields(t, arrFields, ref ipos);
     try
     {
         string str = arrFields[ipos++].Replace(".", "");
         if (string.Compare(str, "STANDARD", true) != 0)
         {
             t.mPredefinedType = (IfcWallTypeEnum)Enum.Parse(typeof(IfcWallTypeEnum), str);
         }
     }
     catch (Exception) { }
 }