.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

User select window

1 REPLY 1
Reply
Message 1 of 2
wang890
393 Views, 1 Reply

User select window

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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: wang890

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost