Пример #1
0
		protected IfcSpatialElement(IfcSpatialElement host, string name) : this(host.mDatabase)
		{ 
			Name = name;
			IfcBuilding building = this as IfcBuilding;
			if(building != null)
				host.addBuilding(building);
			else
			{
				building = host as IfcBuilding;
				IfcBuildingStorey bs = this as IfcBuildingStorey;
				if (building != null && bs != null)
					building.addStorey(bs);
				else
				{
					IfcSpace space = this as IfcSpace;
					if (space != null)
						host.addSpace(space);
					else
						host.AddAggregated(this);
				}
			}
		}