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); } }
public IfcProductDefinitionShape(IfcShapeModel rep) : base(rep) { }
protected IfcShapeModel(IfcShapeModel i) : base(i) { }
protected static void parseString(IfcShapeModel shape, string str, ref int pos) { IfcRepresentation.parseString(shape, str, ref pos); }
public IfcShapeAspect(IfcShapeModel rep, string name, string desc, IfcProductRepresentationSelect pr) : this(rep.mDatabase, name, desc, pr) { mShapeRepresentations.Add(rep.mIndex); }