Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I display the selection window in AutoCAD?

Status
Not open for further replies.

jrice174

Civil/Environmental
Joined
Nov 8, 2004
Messages
129
Location
US
In AutoCAD, if you are going to select a group of objects to move/erase, an expanding selection window is displayed as you move the cursor from the first picked point to the second point to allow the user to visualize the entities that fall within the selected area. How do I get this expanding window for the user when programming in VBA?
 
Hi jrice174,

You'll want to check out the AcadSelectionSet to see how to use it, but in short:

Code:
Sub SelectStuff()
  Dim ss As AcadSelectionSet
  
  ss.SelectOnScreen
  ...
  ..
End Sub

HTH
Todd
 
That did it. Thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top