protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); JArray array = new JArray(); foreach (IfcRelConnectsStructuralMember connects in mConnectedBy) { IfcStructuralConnection connection = connects.RelatedStructuralConnection; if (host == null || connection.mIndex != host.mIndex) { array.Add(connects.getJson(this, options)); } } if (array.Count > 0) { obj["ConnectedBy"] = array; } }
internal IfcRelConnectsWithEccentricity(IfcStructuralMember memb, IfcStructuralConnection connection, IfcConnectionGeometry cg) : base(memb, connection) { mConnectionConstraint = cg.mIndex; }
internal IfcRelConnectsStructuralMember(IfcStructuralMember member, IfcStructuralConnection connection) : base(member.mDatabase) { mRelatingStructuralMember = member.mIndex; member.mConnectedBy.Add(this); mRelatedStructuralConnection = connection.mIndex; connection.mConnectsStructuralMembers.Add(this); }
protected static void parseFields(IfcStructuralConnection c, List<string> arrFields, ref int ipos) { IfcStructuralItem.parseFields(c, arrFields, ref ipos); c.mAppliedCondition = ParserSTEP.ParseLink(arrFields[ipos++]); }
protected IfcStructuralConnection(IfcStructuralConnection i) : base(i) { mAppliedCondition = i.mAppliedCondition; }