- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got some code that currently uses a for each Entity in AcadDocument.modelspace .... next Entity type construct to loop through modelspace entities in a specified document.
However a rewrite has it replacing some pesky mtext with dtext, which then crashes the for-each loop as the next entity in it's list has been deleted.
Is there a better way to do this?- I need to loop through all the modelspace block references (not fussed about the rest, the text is picked up and modified as a side function related to the blocks). I can't use selection sets as this code needs to run independently of what's on the screen.
Can I rephrase my for-each loop to be more resilient to stuff getting deleted off it's list?
thanks for any thoughts..
G
Solved! Go to Solution.