예제 #1
0
 internal static void parseFields(IfcWindowType s, List <string> arrFields, ref int ipos)
 {
     IfcTypeProduct.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++];
 }
예제 #2
0
        internal static void parseFields(IfcWindowStyle s, List <string> arrFields, ref int ipos)
        {
            IfcTypeProduct.parseFields(s, arrFields, ref ipos);
            string str = arrFields[ipos++];

            if (str != "$")
            {
                s.mConstructionType = (IfcWindowStyleConstructionEnum)Enum.Parse(typeof(IfcWindowStyleConstructionEnum), str.Replace(".", ""));
            }
            str = arrFields[ipos++];
            if (str != "$")
            {
                s.mOperationType = (IfcWindowStyleOperationEnum)Enum.Parse(typeof(IfcWindowStyleOperationEnum), str.Replace(".", ""));
            }
            s.mParameterTakesPrecedence = ParserSTEP.ParseBool(arrFields[ipos++]);
            s.mSizeable = ParserSTEP.ParseBool(arrFields[ipos++]);
        }