Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have two dynamic blocks DB1 and DB2. DB2 is nested inside DB1. An array driven by a distance parameter has DB2 block as reference.
I'm trying to iterate through DB1 to find all the references of DB2 in it when the distance is changed. I'm using below code to get the dynamic block table record. However, it only returns one reference of DB2 even if the array has added other instances of DB2 as well.
What am I missing here?
How can I get reference of all the instances of DB2 in DB1?
BlockTableRecord btr = blockRef.IsDynamicBlock ?
(BlockTableRecord)trans.GetObject(blockRef.DynamicBlockTableRecord, OpenMode.ForRead):
(BlockTableRecord)trans.GetObject(blockRef.BlockTableRecord, OpenMode.ForRead);
Thanks in advance for any help.
Solved! Go to Solution.