GeometryGym.Ifc.IfcSpatialElement.setJSON C# (CSharp) Méthode

setJSON() protected méthode

protected setJSON ( JObject obj, BaseClassIfc host, HashSet processed ) : void
obj JObject
host BaseClassIfc
processed HashSet
Résultat void
		protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
		{
			base.setJSON(obj, host, processed);
			string longName = LongName;
			if (!string.IsNullOrEmpty(longName))
				obj["LongName"] = longName;

			List<IfcRelContainedInSpatialStructure> containsElements = ContainsElements;
			if (containsElements.Count > 0)
			{
				JArray array = new JArray();
				foreach (IfcRelContainedInSpatialStructure con in containsElements)
					array.Add(con.getJson(this, processed));
				obj["ContainsElements"] = array;
			}
			//Reference buildings from system ?? not structural analysis
			List<IfcRelServicesBuildings> servicedBySystems = ServicedBySystems;
			if (servicedBySystems.Count > 0)
			{
				JArray array = new JArray();
				foreach (IfcRelServicesBuildings systems in servicedBySystems)
					array.Add(systems.getJson(this, processed));
				obj["ServicedBySystems"] = array;
			}
		}
	}