private void AppendCouplingInformation_CPL_Line(StringBuilder sb, GH_Coupling cpl) { if (cpl.Value.Reference_B.Id > 0) { sb.AppendFormat(" SLNS"); if (cpl.GroupId > 0) { sb.AppendFormat(" GRP {0}", cpl.GroupId); } if (!cpl.FixLiteral.Equals("")) { sb.AppendFormat(" FIX {0}", cpl.FixLiteral); } sb.Append(" REFT"); if (cpl.Value.IsBCurve) { sb.Append(" >SLN"); } else { sb.Append(" >SPT"); } sb.AppendFormat(" {0}", cpl.Value.Reference_B.Id); sb.AppendLine(); } }
private void AppendCouplingInformation_CPL_Point(StringBuilder sb, GH_Coupling cpl) { if (cpl.Value.Reference_B.Id > 0) { // SPTP takes only points as reference, no lines if (cpl.Value.Reference_B is GS_StructuralPoint) { sb.AppendFormat(" SPTP"); if (!cpl.FixLiteral.Equals("")) { sb.AppendFormat(" {0}", cpl.FixLiteral); } sb.AppendFormat(" REF {0}", cpl.Value.Reference_B.Id); if (cpl.GroupId > 0) { sb.AppendFormat(" GRP {0}", cpl.GroupId); } sb.AppendLine(); } } }