User select window

User select window

wang890
Collaborator Collaborator
613 Views
1 Reply
Message 1 of 2

User select window

wang890
Collaborator
Collaborator
how do you make user do a selection in VB.NET such as the one we normally select in drawing: crossing or windowed? see picture. is there an object model for this type of selection so i can read the property such as the coordinate for the window corners as well as the object collection under it?

thank you

Bob
Stantec
Dell Precision 5530, Prism M320PU, C3D 14/17/19
0 Likes
614 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Look into "Jig".

The drafters I work with very often have to find/select entities within a
circle of certain radius. So, I create a DrawJig as visual aid for user to
pick a point and drag a circle to desired radius. When the drag is done, my
"Select" method returns a Point2d (center) and a double (radius) that I can
use to search entities/data.

In your case, you can use Jig to draw a rectangle. When the drag is done,
you get all the polyline's vertice (Point3ds) that you can use with
Editor.SelectWindow()/SelectCrossingWindow() methods. It is up to you to do
fancy visual effect with the rectangle drawn in Jig.

"wang890" wrote in message news:5973804@discussion.autodesk.com...
how do you make user do a selection in VB.NET such as the one we normally
select in drawing: crossing or windowed? see picture. is there an object
model for this type of selection so i can read the property such as the
coordinate for the window corners as well as the object collection under it?

thank you

Bob
0 Likes