How to start..... I want to modify the parameters of dynamic blocks within another dynamic block.
First off, I am not sure of the results Let's say you have Dynamic Block blkA inserted in Dynamic Block blkB..... You have blkB inserted several places in your drawing (let's call them 1B, 2B, 3B). If I make a routine that goes into 1B, then find it's blkA and modifies blkA's parameters, will it effect 2B and 3B.
If it will not effect them all then let's move on....
I understand how to access and modify the parameters of a dynamic block in Model or Paper Space, but how do I get to the sub block... in this case called blkA?
I did not see anything under the AcadBlockReference that would show you it's objects. When I listed all of the blocks, it did not show any sub blocks. I used this code to list them.
Code:
Dim myLayout As AcadLayout, myEntity As AcadEntity
For Each myLayout In ThisDrawing.Layouts
For Each myEntity In myLayout.Block
If myEntity.ObjectName = "AcDbBlockReference" Then
Debug.Print myEntity.Handle
End If
Next myEntity
next myLayout