.NET

Reply
Distinguished Contributor
wesbird
Posts: 349
Registered: ‎12-05-2003
Message 1 of 1 (165 Views)

SelectAtPoint

165 Views, 0 Replies
05-09-2006 11:37 AM
Hi
since there is no SelectAtPoint in .NET, I am thinking to create one myself.
I tried
GetSelection, but I can use point as paramete;
GetEntity, only return 1 object selected ( at my case, it's possible there are > 1 object at pickbox ) and I can not filte by layer
SelectCrossingWindow, I have to problem to convert pickbox size to AutoCAD geometrical size.
What I like to do is, to select something in the drawing, user pick a point in the drawing,
a) if there is something under cursor,
a1) if only one object selected, add to selection set, highlight it, prompt to select next one
a2) if more than one object selected, highlight one, user can type N (for Next) to move to next one
a3) user can keep pick for next object
b) if there is nothing under cursor, I will look for the closest boundary pline around this point.
c) if there is no boundary pline found, ask to pick 2nd point to create a Window/Crossing selection.

I almost get b) done. c) would not be a problem.
Now my question is,
1) is there a way to use a point as parameter of GetSelection ? or get the pick point from GetSelection ?
2) How I can calculate my select window from pickbox value at any zoom level so I use SelectCrossingWindow ?

in ObjectARX, acedSSGet( NULL, pt, NULL, NULL, ss ) do the job. Is this implement in .NET ?

I would appreciate any help. Thank you very much


Wes

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community