How to only loop through items selected (VBA autocad)
How to only loop through items selected (VBA autocad)
(OP)
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....
For Each entry In ThisDrawing.ModelSpace (where is selected)
Next entry
Thank you....





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