| Article | 70002570 |
| Type | Bug |
| Product | Engine |
| Version | 1101 |
| Date Added | 10/3/2024 |
| Fixed | 11.2.5.0 (10/3/2024) |
| Submitted by | chandrashekhar chougule |
Summary
CmdTrim is thrown an exception using the following code try { vdDocument mDoc = this.VD.BaseControl.ActiveDocument; vdArc xArc = new vdArc(mDoc, new gPoint(0, 3486.2857142857147, 0), 11.428571428571429, 0, 2.0943951023931953); // Error xArc.SetUnRegisterDocument(mDoc); xArc.setDocumentDefaults(); mDoc.ActiveLayOut.Entities.AddItem(xArc); vdLine xLine = new vdLine(mDoc, new gPoint(0, 3505.1428571428573, 0), new gPoint(0, 3486.2857142857147, 0)); xLine.SetUnRegisterDocument(mDoc); xLine.setDocumentDefaults(); mDoc.ActiveLayOut.Entities.AddItem(xLine); bool Res = mDoc.CommandAction.CmdTrim(xLine, new object[] { xArc, new gPoint(-97.714285714285722, 3505.4359999999997, 0) }); mDoc.Redraw(true); } catch (Exception ex) { MessageBox.Show(ex.Message); }
Solution
Fixed in version 11.2.5
