internal IfcBuilding(DatabaseIfc db, IfcBuilding b, DuplicateOptions options) : base(db, b, options) { mElevationOfRefHeight = b.mElevationOfRefHeight; mElevationOfTerrain = b.mElevationOfTerrain; if (b.mBuildingAddress != null) BuildingAddress = db.Factory.Duplicate(b.BuildingAddress) as IfcPostalAddress; }
internal IfcBuilding(DatabaseIfc db, IfcBuilding b, DuplicateOptions options) : base(db, b, options) { if (b.mBuildingAddress != null) { BuildingAddress = db.Factory.Duplicate(b.BuildingAddress) as IfcPostalAddress; } }
internal IfcBuilding(DatabaseIfc db, IfcBuilding b, IfcOwnerHistory ownerHistory, bool downStream) : base(db, b, ownerHistory, downStream) { if (b.mBuildingAddress != null) { BuildingAddress = db.Factory.Duplicate(b.BuildingAddress) as IfcPostalAddress; } }
private void setDefaultAddress() //Implementers Agreement requires address { BuildingAddress = new IfcPostalAddress(mDatabase) { Town = "Unknown", Country = "Unknown", PostalCode = "Unknown" }; BuildingAddress.AddressLines.Add("Unknown"); }
internal static IfcPostalAddress Parse(string strDef) { IfcPostalAddress a = new IfcPostalAddress(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
internal static void parseFields(IfcPostalAddress a, List<string> arrFields, ref int ipos) { IfcAddress.parseFields(a, arrFields, ref ipos); a.mInternalLocation = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mInternalLocation)) a.mInternalLocation = "$"; string str = arrFields[ipos++]; if (str != "$") { List<string> lst = ParserSTEP.SplitLineFields(str); for (int icounter = 0; icounter < lst.Count; icounter++) a.mAddressLines.Add(lst[icounter].Replace("'", "")); } a.mPostalBox = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mPostalBox)) a.mPostalBox = "$"; a.mTown = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mTown)) a.mTown = "$"; a.mRegion = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mRegion)) a.mRegion = "$"; a.mPostalCode = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mPostalCode)) a.mPostalCode = "$"; a.mCountry = arrFields[ipos++].Replace("'", ""); if (string.IsNullOrEmpty(a.mCountry)) a.mCountry = "$"; }
internal IfcPostalAddress(IfcPostalAddress o) : base(o) { mInternalLocation = o.mInternalLocation; mAddressLines = o.mAddressLines; mPostalBox = o.mPostalBox; mTown = o.mTown; mRegion = o.mRegion; mPostalCode = o.mPostalCode; mCountry = o.mCountry; }
//Implementers Agreement requires address private void setDefaultAddress() { BuildingAddress = new IfcPostalAddress(mDatabase) { AddressLines = new List<string>() { "Unknown" }, Town = "Unknown", Country = "Unknown", PostalCode = "Unknown" }; }