internal IfcRelCoversSpaces(IfcSpace s, IfcCovering covering) : base(s.mDatabase) { mRelatedSpace = s.mIndex; s.mHasCoverings.Add(this); if (covering != null) { mRelatedCoverings.Add(covering.mIndex); covering.mCoversSpaces = this; } }
public Pset_SpaceCommon(IfcSpace instance) : base(instance.mDatabase, "Pset_SpaceCommon") { DefinesOccurrence.Assign(instance); }
public Pset_SpaceOccupancyRequirements(IfcSpace instance) : base(instance.mDatabase, "Pset_SpaceOccupancyRequirements") { DefinesOccurrence.Assign(instance); }
public Qto_SpaceBaseQuantities(IfcSpace instance) : base(instance) { }
internal static IfcSpace Parse(string strDef) { IfcSpace s = new IfcSpace(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }
internal static void parseFields(IfcSpace gp, List<string> arrFields, ref int ipos) { IfcSpatialStructureElement.parseFields(gp, arrFields, ref ipos); string s = arrFields[ipos++]; if (s[0] == '.') gp.mPredefinedType = (IfcSpaceTypeEnum)Enum.Parse(typeof(IfcSpaceTypeEnum), s.Replace(".", "")); gp.mElevationWithFlooring = ParserSTEP.ParseDouble(arrFields[ipos++]); }
internal IfcSpace(IfcSpace p) : base(p) { mPredefinedType = p.mPredefinedType; mElevationWithFlooring = p.mElevationWithFlooring; }
internal bool addSpace(IfcSpace s) { for (int icounter = 0; icounter < mIsDecomposedBy.Count; icounter++) { IfcRelAggregates rd = mIsDecomposedBy[icounter]; if (rd.Description.EndsWith("Spaces", true, System.Globalization.CultureInfo.CurrentCulture)) return rd.addObject(s); } IfcRelAggregates ra = new IfcRelAggregates(mDatabase, KeyWord, "Space", this, s); return true; }