Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
 internal IfcBuilding(DatabaseIfc db, IfcBuilding b, DuplicateOptions options) : base(db, b, options)
 {
     if (b.mBuildingAddress != null)
     {
         BuildingAddress = db.Factory.Duplicate(b.BuildingAddress) as IfcPostalAddress;
     }
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 private void setDefaultAddress()          //Implementers Agreement requires address
 {
     BuildingAddress = new IfcPostalAddress(mDatabase)
     {
         Town = "Unknown", Country = "Unknown", PostalCode = "Unknown"
     };
     BuildingAddress.AddressLines.Add("Unknown");
 }
Exemplo n.º 5
0
		internal static IfcPostalAddress Parse(string strDef) { IfcPostalAddress a = new IfcPostalAddress(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
Exemplo n.º 6
0
		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 = "$";
		}
Exemplo n.º 7
0
		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;
		}
Exemplo n.º 8
0
 //Implementers Agreement requires address
 private void setDefaultAddress()
 {
     BuildingAddress = new IfcPostalAddress(mDatabase) { AddressLines = new List<string>() { "Unknown" }, Town = "Unknown", Country = "Unknown", PostalCode = "Unknown" };
 }