Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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 to only loop through items selected (VBA autocad)

Status
Not open for further replies.

ledComp

Computer
Jan 14, 2008
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....
 
Replies continue below

Recommended for 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