How to quickly group a large number of objects in AutoCAD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on creating specific regions on a surface in Civil 3D and assigning number texts to each region. My goal is to group each Region and its corresponding text into a Group object.
However, I have noticed that when the number of Regions exceeds 10,000, the time required for grouping increases exponentially. Through testing, I found that using tr.AddNewlyCreatedDBObject(group, true); causes performance issues because objects accumulate within the transaction, making the operation significantly slower.
But when I remove tr.AddNewlyCreatedDBObject(group, true); from the code, I encounter an eNotOpenWrite error when adding entities to a Group.
My Questions:
Is it possible to group entities without using tr.AddNewlyCreatedDBObject?
If not, is there an alternative way to perform grouping efficiently for a large number of objects?