| Article | 60000013 |
| Type | Wish |
| Product | Engine |
| Date Added | 12/6/2006 12:00:00 AM |
| Fixed | (6/21/2007 12:00:00 AM) |
| Submitted by | Levi de Azevedo |
Summary
Detect Boundary with select one point .
Solution
In version 6008 we added a static method in vdPolyline object named GetBoundaryPolyFromPoint which updates the polyline's Vertexlist with the calculated baoundary from the given point. This method can be used as following:
Document.Prompt("Pick a point:");
s = Document.ActionUtility.getUserPoint(out pt);
Document.Prompt(null);
if (s == VectorDraw.Actions.StatusCode.Success)
{
pt = Document.User2WorldMatrix.Transform(pt);
VectorDraw.Professional.vdFigures.
vdPolyline poly = new vdPolyline();poly.SetUnRegisterDocument(Document);
poly.setDocumentDefaults();
bool suc = poly.GetBoundaryPolyFromPoint(pt, 0.0);
if (suc)
Document.ActiveLayOut.Entities.AddItem(poly);
}
You can also check VDF.chm in Index for "GetBoundaryPolyFromPoint" for a description of the parameters.
