Inheritance: IfcStructuralItem
Exemplo n.º 1
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);

            if (mAppliedCondition > 0)
            {
                obj["AppliedCondition"] = AppliedCondition.getJson(this, options);
            }
            JArray array = new JArray();

            foreach (IfcRelConnectsStructuralMember connects in mConnectsStructuralMembers)
            {
                IfcStructuralMember member = connects.RelatingStructuralMember;
                if (host == null || member.mIndex != host.mIndex)
                {
                    array.Add(member.getJson(this, options));
                }
            }
            if (array.Count > 0)
            {
                obj["ConnectsStructuralMembers"] = array;
            }
        }
Exemplo n.º 2
0
		internal IfcRelConnectsWithEccentricity(IfcStructuralMember memb, IfcStructuralConnection connection, IfcConnectionGeometry cg)
			: base(memb, connection) { mConnectionConstraint = cg.mIndex; }
Exemplo n.º 3
0
		internal IfcRelConnectsStructuralMember(IfcStructuralMember member, IfcStructuralConnection connection)
			: base(member.mDatabase)
		{
			mRelatingStructuralMember = member.mIndex;
			member.mConnectedBy.Add(this);
			mRelatedStructuralConnection = connection.mIndex;
			connection.mConnectsStructuralMembers.Add(this);
		}
Exemplo n.º 4
0
		internal IfcRelConnectsStructuralElement(IfcElement elem, IfcStructuralMember memb)
			: base(elem.mDatabase) { if (elem.mDatabase.mSchema != Schema.IFC2x3) throw new Exception(KeyWord + " Deleted IFC4!"); mRelatingElement = elem.mIndex; mRelatedStructuralMember = memb.mIndex; }
Exemplo n.º 5
0
		internal void associateElement(IfcStructuralMember memb) { Associates.mRelatedObjects.Add(memb.mIndex); }
Exemplo n.º 6
0
		public void AddStructuralMember(IfcStructuralMember m)
		{
			if (m == null)
				return;
			if (mDatabase.mRelease == ReleaseVersion.IFC2x3)
			{
				mHasStructuralMember.Add(new IfcRelConnectsStructuralElement(this, m));
			}
			else
			{
				string s = "Analytic Elements";
				foreach (IfcRelAssignsToProduct ra in mReferencedBy)
				{
					if (string.Compare(ra.Name, s, true) == 0)
					{
						if (!ra.mRelatedObjects.Contains(m.mIndex))
							ra.mRelatedObjects.Add(m.mIndex);
						return;
					}
				}
				IfcRelAssignsToProduct rap = new IfcRelAssignsToProduct(m, this) { Name = s };
			}
		}
Exemplo n.º 7
0
		protected static void parseFields(IfcStructuralMember m, List<string> arrFields, ref int ipos) { IfcStructuralItem.parseFields(m, arrFields, ref ipos); }
Exemplo n.º 8
0
		protected IfcStructuralMember(IfcStructuralMember i) : base(i) { }