- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Does anyone know of a way to select a block in an AutoCAD drawing by it's unique block handle? I am currently working on a program where it takes the block data out of the DWG and put it into excel for additional manipulation. I would then like it to be sent back into the dwg with the update attribute information and dynamic block information. i have most of this working, but it is slow.
The current code for putting the data back is a series of "for next" or "if then" statements to select the all autocad entities in the dwg, see if they are a dynamic block, see if it is the specific dynamic block I need to update and then update as required. But when I have a hundred lines to update and more then a couple of hundred acadenities in the drawing, the looping takes time.
Do you know of a way to select only that block right off the bat? I also will have the Block Name and it's insertion point. I can also get any additional information from the block if required when I import the block into excel.
Please let me know when you can.
Solved! Go to Solution.