Inheritance: GeometryGym.Ifc.IfcMaterialDefinition
Exemplo n.º 1
0
 internal override void ParseXml(XmlElement xml)
 {
     base.ParseXml(xml);
     foreach (XmlNode child in xml.ChildNodes)
     {
         string name = child.Name;
         if (string.Compare(name, "MaterialLayers") == 0)
         {
             foreach (XmlNode node in child.ChildNodes)
             {
                 IfcMaterialLayer l = mDatabase.ParseXml <IfcMaterialLayer>(node as XmlElement);
                 if (l != null)
                 {
                     addMaterialLayer(l);
                 }
             }
         }
     }
     if (xml.HasAttribute("LayerSetName"))
     {
         LayerSetName = xml.Attributes["LayerSetName"].Value;
     }
     if (xml.HasAttribute("Description"))
     {
         Description = xml.Attributes["Description"].Value;
     }
 }
Exemplo n.º 2
0
		internal IfcMaterialLayerSetWithOffsets(IfcMaterialLayer layer, string name, IfcLayerSetDirectionEnum dir, double offset1, double offset2)
			: this(layer, name,dir,offset1) { mOffsetValues[1] = offset2; }
Exemplo n.º 3
0
		internal IfcMaterialLayerSetWithOffsets(IfcMaterialLayer layer, string name, IfcLayerSetDirectionEnum dir, double offset)
			: base(layer, name) { mOffsetDirection = dir; mOffsetValues[0] = offset; }
Exemplo n.º 4
0
		public IfcMaterialLayerSet(IfcMaterialLayer layer, string name) : base(layer.mDatabase) { mMaterialLayers.Add(layer.mIndex); Name = name;  }
Exemplo n.º 5
0
		internal static void parseFields(IfcMaterialLayer m, List<string> arrFields, ref int ipos,Schema schema)
		{
			IfcMaterialDefinition.parseFields(m, arrFields, ref ipos);
			m.mMaterial = ParserSTEP.ParseLink(arrFields[ipos++]);
			m.mLayerThickness = ParserSTEP.ParseDouble(arrFields[ipos++]);
			m.mIsVentilated = ParserIfc.ParseIFCLogical(arrFields[ipos++]);
			try
			{
				if (schema != Schema.IFC2x3)
				{
					m.mName = arrFields[ipos++].Replace("'", "");
					m.mDescription = arrFields[ipos++].Replace("'", "");
					m.mCategory = arrFields[ipos++].Replace("'", "");
					m.mPriority = ParserSTEP.ParseDouble(arrFields[ipos++]);
				}
			}
			catch (Exception) { }
		}
Exemplo n.º 6
0
		internal static IfcMaterialLayer Parse(string strDef,Schema schema) { IfcMaterialLayer m = new IfcMaterialLayer(); int ipos = 0; parseFields(m, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return m; }
Exemplo n.º 7
0
		internal IfcMaterialLayer(IfcMaterialLayer m) : base(m) { mMaterial = m.mMaterial; mLayerThickness = m.mLayerThickness; mIsVentilated = m.mIsVentilated; }