GeometryGym.Ifc.IfcResourceConstraintRelationship.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);
			if (mRelatingConstraint != host.mIndex)
				obj["RelatingConstraint"] = RelatingConstraint.getJson(this, processed);
			JArray array = new JArray();
			foreach (IfcResourceObjectSelect r in RelatedResourceObjects)
			{
				IfcResourceConstraintRelationship rcr = r as IfcResourceConstraintRelationship;
				if (r.Index != host.mIndex)
					array.Add(mDatabase[r.Index].getJson(this, processed));
			}
			if (array.Count > 0)
				obj["RelatedResourceObjects"] = array;
		}
	}
IfcResourceConstraintRelationship