protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if ((mDatabase != null && mStartDistAlong > mDatabase.Tolerance) || mStartDistAlong > 1e-5) { obj["StartDistAlong"] = StartDistAlong; } obj["Segments"] = new JArray(Segments.ConvertAll(x => x.getJson(this, options))); }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if (!double.IsNaN(mStartDistAlong)) { obj["StartDistAlong"] = mStartDistAlong.ToString(); } obj["Segments"] = new JArray(Segments.ConvertAll(x => x.getJson(this, options))); }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Segments"] = new JArray(Segments.ConvertAll(x => x.getJson(this, options))); }
protected override string BuildStringSTEP(ReleaseVersion release) { return((release < ReleaseVersion.IFC4X3_RC3 ? "" : base.BuildStringSTEP(release)) + ",#" + mBaseCurve.StepId + (release == ReleaseVersion.IFC4X3_RC2 ? ",(#" + string.Join(",#", Segments.ConvertAll(x => x.StepId.ToString())) + ")" : "") + (mEndPoint == null ? ",$" : ",#" + mEndPoint.StepId)); }