Inheritance: IfcRepresentation
Esempio 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, "ShapeRepresentations") == 0)
         {
             foreach (XmlNode cn in child.ChildNodes)
             {
                 IfcShapeModel s = mDatabase.ParseXml <IfcShapeModel>(cn as XmlElement);
                 if (s != null)
                 {
                     addRepresentation(s);
                 }
             }
         }
         else if (string.Compare(name, "PartOfProductDefinitionShape") == 0)
         {
             PartOfProductDefinitionShape = mDatabase.ParseXml <IfcProductRepresentationSelect>(child as XmlElement);
         }
     }
     if (xml.HasAttribute("Name"))
     {
         Name = xml.Attributes["Name"].Value;
     }
     if (xml.HasAttribute("Description"))
     {
         Description = xml.Attributes["Description"].Value;
     }
     if (xml.HasAttribute("ProductDefinitional"))
     {
         Enum.TryParse <IfcLogicalEnum>(xml.Attributes["ProductDefinitional"].Value, true, out mProductDefinitional);
     }
 }
Esempio n. 2
0
		public IfcProductDefinitionShape(IfcShapeModel rep) : base(rep) { }
Esempio n. 3
0
		protected IfcShapeModel(IfcShapeModel i) : base(i) { }
Esempio n. 4
0
		protected static void parseString(IfcShapeModel shape, string str, ref int pos) { IfcRepresentation.parseString(shape, str, ref pos); }
Esempio n. 5
0
		public IfcShapeAspect(IfcShapeModel rep, string name, string desc, IfcProductRepresentationSelect pr)
			: this(rep.mDatabase, name, desc, pr) { mShapeRepresentations.Add(rep.mIndex); }