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 LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to only loop through items selected (VBA autocad)

Status
Not open for further replies.

ledComp

Computer
Joined
Jan 14, 2008
Messages
3
I'm looping through the modelSpace but only want to loop through those objects that have been selected. Does anyone know how I can do that?

For Each entry In ThisDrawing.ModelSpace (where is selected)

Next entry


Thank you....
 
Hi ledComp,

You need to create a selection set, and then loop through the selection set.

You may find this FAQ over on eng-tips sister site, tek-tips helpful.

HTH
Todd

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top