Norman Yuan
Hello mp.
I have the same question like yours.
Could you please help me with that? or at least provide Tony Code ? Seems his website is down and I could not down load the code.
http://www.caddzone.com/BrepSamples.cs
Thanks,
Janet,
I guess you're asking for something like this...
Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; Point3dCollection pts = new Point3dCollection(); PromptPointOptions opts = new PromptPointOptions("\nPick point: "); opts.AllowNone = true; PromptPointResult result; do { result = ed.GetPoint(opts); if (result.Status == PromptStatus.OK) { pts.Add(result.Value); opts.BasePoint = result.Value; } } while (result.Status == PromptStatus.OK);
remove 'opts.AllowNone = true' if you don't want the loop to end when the user hits enter/space bar.
remove opts.Basepoint... if you don't want the rubberband to display
BR
Paavo Rantanen
Thank You Paavo,
Indeed It is what I want.
If I don't interrupt you, another question please. How could I have a Keyword Option in the middle of this loop.
Let's say , when prompts for picking a point if user press "G" then some functions take place and then comes back to loop ?
Thank you guys again.
Janet.
Sure, look at the KeywordCollection member of PromptPointOptions class.
Kean Walmsley describes the procedure in this post:
BR
Paavo Rantanen