Creating a new BlockReference doesn't copy DynamicProperties along

There are a few things going on here. Dynamic blocks have an additional name called the anonymous name that kicks in as soon as you change any dynamic attribute. This is because there can’t be multiple instances of a block reference in AutoCAD that have different values. You can test this by using the INSERT command to insert a new instance of the A$Ce3b14a25 block into the drawing. If you select the block and run LIST, there is no anonymous name:

OriginalName

But once you change any dynamic attribute, you will see that an anonymous name is created:

AnonymousName

The graph that you posted will work if the block reference is still in it’s default state (i.e. no anonymous name), however currently it shows this:

The BlockReference.Block node in Dynamo returns the anonymous block name for dynamic blocks instead of the original block name. To try and solve this I asked Paolo awhile ago to add a node to the Civil 3D Toolkit that gets the dynamic block references of a source block. So here is a modified script that you can use that should work.

Testfile for Blockreference_MZJ.dyn (23.7 KB)

3 Likes