internal static void parseFields(IfcRelAssignsToProduct c, List<string> arrFields, ref int ipos) { IfcRelAssigns.parseFields(c, arrFields, ref ipos); c.mRelatingProduct = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal IfcRelAssignsToProduct(IfcRelAssignsToProduct a) : base(a) { mRelatingProduct = a.mRelatingProduct; }
internal static IfcRelAssignsToProduct Parse(string strDef) { IfcRelAssignsToProduct a = new IfcRelAssignsToProduct(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
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 }; } }