Prod.: Engine, ver.: 6007, ID: 60000013, Wish : Boundary Select with one point

Wish : Boundary Select with one point

Article60000013
TypeWish
ProductEngine
Version6007
Date Added12/6/2006
FixedYes [6/21/2007]
Submitted byLevi de Azevedo
Keywords

Subject

Boundary Select with one point

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.