troubleshooting with SELECT acSelectionSetCrossing
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
troubleshooting with SELECT acSelectionSetCrossing

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
claudiadragoste



Joined: 14 Dec 2005
Posts: 1

Posted: Wed Dec 14, 2005 10:57 am    Post subject: troubleshooting with SELECT acSelectionSetCrossing Reply with quote

Hello!

here is the sample code:

Dim BaSelect As AcadSelectionSet
Dim Pt1(0 To 2) As Double
Dim Pt2(0 To 2) As Double

Pt1(0) = 50
Pt1(1) = 50
Pt1(2) = 0
Pt2(0) = 60
Pt2(1) = 60
Pt2(2) = 0
Set BaSelect = ThisDrawing.SelectionSets.Add("BaVBa")
BaSelect.Select acSelectionSetCrossing, Pt1, Pt2
MsgBox BaSelect.Count
BaSelect.Delete


And now the problem: if the rectangle area defined between pt1 and pt2 is not in the active view of the drawing - means that I am positioned n another area of the drawing, then Baselect return 0, even if there are objects crossing this rectangle.

Coud I obtain the correct number of selected objects, no matter i am positioned in the drawing?

Hope somebody answer me soon!
C.

Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB