Inheritance: BaseClassIfc, IfcStyleAssignmentSelect
示例#1
0
 internal override void ParseXml(XmlElement xml)
 {
     base.ParseXml(xml);
     if (xml.HasAttribute("LayerOn"))
     {
         Enum.TryParse <IfcLogicalEnum>(xml.Attributes["LayerOn"].Value, true, out mLayerOn);
     }
     if (xml.HasAttribute("LayerFrozen"))
     {
         Enum.TryParse <IfcLogicalEnum>(xml.Attributes["LayerFrozen"].Value, true, out mLayerFrozen);
     }
     if (xml.HasAttribute("LayerBlocked"))
     {
         Enum.TryParse <IfcLogicalEnum>(xml.Attributes["LayerBlocked"].Value, true, out mLayerBlocked);
     }
     foreach (XmlNode child in xml.ChildNodes)
     {
         string name = child.Name;
         if (string.Compare(name, "LayerStyles") == 0)
         {
             foreach (XmlNode cn in child.ChildNodes)
             {
                 IfcPresentationStyle s = mDatabase.ParseXml <IfcPresentationStyle>(cn as XmlElement);
                 if (s != null)
                 {
                     addLayerStyle(s);
                 }
             }
         }
     }
 }
示例#2
0
		protected static void parseFields(IfcPresentationStyle s, List<string> arrFields, ref int ipos) { s.mName = arrFields[ipos++].Replace("'", ""); }
示例#3
0
		internal IfcPresentationStyleAssignment(DatabaseIfc m, IfcPresentationStyle style) : base(m) { mStyles.Add(style.Index); }
示例#4
0
		protected IfcPresentationStyle(IfcPresentationStyle i) : base() { mName = i.mName; }