does working SelectWindowPolygon just with 4 points ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
inside this area i have a circle..
lpt.Add(new Point3d(5.0, 5.0, 0.0));
lpt.Add(new Point3d(13.0, 15.0, 0.0));
lpt.Add(new Point3d(12.0, 9.0, 0.0));
lpt.Add(new Point3d(5.0, 12.0, 0.0));
lpt.Add(new Point3d(5.0, 5.0, 0.0));
// if I add the red row SelectWindowPolygon return Error. without this its return the objects.
PromptSelectionOptions Opts = new PromptSelectionOptions();
Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;
Point3dCollection Polygon = new Point3dCollection(lpt.ToArray());
PromptSelectionResult res = ed.SelectWindowPolygon(Polygon);
maybe I'm a stupid...but I guess that a polygon could be have more then 4 vertex..