//internal List<int> mHasPropertySets = new List<int>();// : OPTIONAL SET [1:?] OF IfcPropertySetDefinition internal override void ParseXml(XmlElement xml) { base.ParseXml(xml); if (xml.HasAttribute("ApplicableOccurrence")) { ApplicableOccurrence = xml.Attributes["ApplicableOccurrence"].Value; } foreach (XmlNode child in xml.ChildNodes) { string name = child.Name; if (string.Compare(name, "HasPropertySets") == 0) { List <IfcPropertySetDefinition> psets = new List <IfcPropertySetDefinition>(child.ChildNodes.Count); foreach (XmlNode cn in child.ChildNodes) { IfcPropertySetDefinition ps = mDatabase.ParseXml <IfcPropertySetDefinition>(cn as XmlElement); if (ps != null) { psets.Add(ps); } } HasPropertySets = psets; } } }
internal override void ParseXml(XmlElement xml) { base.ParseXml(xml); foreach (XmlNode child in xml.ChildNodes) { string name = child.Name; if (string.Compare(name, "RelatedPropertySets") == 0) { List <IfcPropertySetDefinition> psets = new List <IfcPropertySetDefinition>(); foreach (XmlNode cn in child.ChildNodes) { IfcPropertySetDefinition p = mDatabase.ParseXml <IfcPropertySetDefinition>(cn as XmlElement); if (p != null) { psets.Add(p); } } RelatedPropertySets = psets; } else if (string.Compare(name, "RelatingTemplate") == 0) { RelatingTemplate = mDatabase.ParseXml <IfcPropertySetTemplate>(child as XmlElement); } } }
internal static void parseFields(IfcWindowPanelProperties p, List <string> arrFields, ref int ipos) { IfcPropertySetDefinition.parseFields(p, arrFields, ref ipos); p.mOperationType = (IfcWindowPanelOperationEnum)Enum.Parse(typeof(IfcWindowPanelOperationEnum), arrFields[ipos++].Replace(".", "")); p.mPanelPosition = (IfcWindowPanelPositionEnum)Enum.Parse(typeof(IfcWindowPanelPositionEnum), arrFields[ipos++].Replace(".", "")); p.mFrameDepth = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mFrameThickness = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mShapeAspectStyle = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal static void parseFields(IfcWindowLiningProperties p, List <string> arrFields, ref int ipos, ReleaseVersion schema) { IfcPropertySetDefinition.parseFields(p, arrFields, ref ipos); p.mLiningDepth = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mLiningThickness = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mTransomThickness = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mMullionThickness = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mFirstTransomOffset = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mSecondTransomOffset = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mFirstMullionOffset = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mSecondMullionOffset = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mShapeAspectStyle = ParserSTEP.ParseLink(arrFields[ipos++]); if (schema != ReleaseVersion.IFC2x3) { p.mLiningOffset = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mLiningToPanelOffsetX = ParserSTEP.ParseDouble(arrFields[ipos++]); p.mLiningToPanelOffsetY = ParserSTEP.ParseDouble(arrFields[ipos++]); } }
public void AddPropertySet(IfcPropertySetDefinition psd) { mHasPropertySets.Add(psd.mIndex); }
public IfcRelDefinesByProperties(List<IfcObjectDefinitionSelect> objs, IfcPropertySetDefinition ifcproperty) : this(ifcproperty) { for (int icounter = 0; icounter < objs.Count; icounter++) { mRelatedObjects.Add(objs[icounter].Index); objs[icounter].IsDefinedBy.Add(this); } }
public IfcRelDefinesByProperties(IfcObjectDefinitionSelect od, IfcPropertySetDefinition ifcproperty) : this(new List<IfcObjectDefinitionSelect>() { od }, ifcproperty) { }
internal IfcRelDefinesByProperties(IfcPropertySetDefinition ifcproperty) : base(ifcproperty.mDatabase) { mRelatingPropertyDefinition = ifcproperty.mIndex; }
internal static void parseFields(IfcPropertySetDefinition d, List<string> arrFields, ref int ipos) { IfcPropertyDefinition.parseFields(d, arrFields, ref ipos); }
protected IfcPropertySetDefinition(IfcPropertySetDefinition i) : base(i) { }