Selectionset Window Problem

Selectionset Window Problem

Anonymous
Not applicable
224 Views
3 Replies
Message 1 of 4

Selectionset Window Problem

Anonymous
Not applicable
Chances are that the points you are specifying are off the screen. Try doing
a zoom extents prior to calling the Select method.

"Scott M Riddle" wrote in message
news:MPG.12e3bbea4061af75989691@adesknews.autodesk.com...
> I am trying to select some text on an AutoCAD drawing using the following
> method.
> sub test
>
> mode = acSelectionSetWindow
> point1(0) = 1833: point1(1) = 17: point1(2) = 0
> point2(0) = 1534: point2(1) = 30: point2(2) = 0
> corner1 = point1: corner2 = point2
> ssetObj.Select mode, corner1, corner2
>
> When I have a drawing in AutoCAD this method of selecting objects works
> wonderfully. However, when I try to pull up the drawing from the macro
> (as seen below) and then try this selection method 'ssetObj' remains
> empty. What is going on here? Thanks in advance for you help.
>
> (Autocad 14.01 Nt4.0)
>
> ThisDrawing.Open ("drawing.dwg")
> mode = acSelectionSetWindow
> point1(0) = 0: point1(1) = 0: point1(2) = 0
> point2(0) = 30: point2(1) = 15: point2(2) = 0
> corner1 = point1: corner2 = point2
> ssetObj.Select mode, corner1, corner2
0 Likes
225 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I am trying to select some text on an AutoCAD drawing using the following
method.
sub test

mode = acSelectionSetWindow
point1(0) = 1833: point1(1) = 17: point1(2) = 0
point2(0) = 1534: point2(1) = 30: point2(2) = 0
corner1 = point1: corner2 = point2
ssetObj.Select mode, corner1, corner2

When I have a drawing in AutoCAD this method of selecting objects works
wonderfully. However, when I try to pull up the drawing from the macro
(as seen below) and then try this selection method 'ssetObj' remains
empty. What is going on here? Thanks in advance for you help.

(Autocad 14.01 Nt4.0)

ThisDrawing.Open ("drawing.dwg")
mode = acSelectionSetWindow
point1(0) = 0: point1(1) = 0: point1(2) = 0
point2(0) = 30: point2(1) = 15: point2(2) = 0
corner1 = point1: corner2 = point2
ssetObj.Select mode, corner1, corner2
0 Likes
Message 3 of 4

harryliu3140
Enthusiast
Enthusiast
This problem still exist in ACAD2008. I must zoom in model space to see all the item I want to select then run the VBA program.
0 Likes
Message 4 of 4

Anonymous
Not applicable
I'm also seeing this problem in 2009. Sometimes one call to ssetobj.Select mode, corner1, corner2 will add the objects, other times it takes two calls, and sometimes more... What's the deal here?

Furthermore, when I do get the selectionset to populate, it seems to be grabbing more than what my points define as the boundary for acSelectionSetCrossing. I am trying to select objects in a very narrow crossing band (like 0.001 m wide) so I wonder if that's too fine of a resolution for AutoCAD. Maybe it's graphics related?

Can anyone offer any alternative methods to selecting objects in a very narrow section of the screen?
0 Likes