# Modification of Dynamic Block Properties by Dynamo C3D

**URL:** <https://forum.dynamobim.com/t/modification-of-dynamic-block-properties-by-dynamo-c3d/56579>\
**Category:** Civil 3D\
**Created:** [October 26, 2020, 4:42am UTC](https://forum.dynamobim.com/t/modification-of-dynamic-block-properties-by-dynamo-c3d/56579 "2020-10-26T04:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![off.wni](https://avatars.discourse-cdn.com/v4/letter/o/a9a28c/32.png) [@off.wni](https://forum.dynamobim.com/u/off.wni)\
**Post date:** [October 26, 2020, 4:42am UTC](https://forum.dynamobim.com/t/modification-of-dynamic-block-properties-by-dynamo-c3d/56579/1 "2020-10-26T04:42:38Z")

</div>

Hi,  
On the attached capture code of Dynamo for C3D, I try to place the dynamic block properties inserted into C3D model space block. I try to organized the data input by Excel. The order of data is match with data value as shown in node BlockReference.DynamicPropertyNames. After running, it’s error with indication that some element of list of Block is null!.  
Please recommend how to solve this error.  
To be very thanks in advance.  
Best Regards;  
Winai

 ![DynamoCapture1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/5506058f41d296638796173c0cc4bf94eed95a8d.png)

---

<div class="post-metadata">

**Author:** ![rodney.bernard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rodney.bernard/32/109032_2.png) [@rodney.bernard](https://forum.dynamobim.com/u/rodney.bernard)\
**Post date:** [January 7, 2021, 2:01am UTC](https://forum.dynamobim.com/t/modification-of-dynamic-block-properties-by-dynamo-c3d/56579/2 "2021-01-07T02:01:39Z")

</div>

I am having similar issues with the Dynamic Block Properties in Civil 3D. It would be great if someone has some examples of how to use the OOTB nodes.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 7, 2021, 4:13am UTC](https://forum.dynamobim.com/t/modification-of-dynamic-block-properties-by-dynamo-c3d/56579/3 "2021-01-07T04:13:27Z")

</div>

@rodney.bernard - the OOTB node for getting the block references of a dynamic block has a shortcoming in that it does not handle anonymous blocks, which is what happens when dynamic properties are used. To get around this I asked Paolo to add a node to the Civil 3D Toolkit to get the dynamic block references of a block. Here’s an example of how to use it.

[DynamicBlockExample.dwg](https://forum.dynamobim.com/uploads/short-url/rq4VVOPqUhaNorVPmGmxnU8DzqQ.dwg) (394.3 KB)  
[DynamicBlockExample.dyn](https://forum.dynamobim.com/uploads/short-url/9hC8MUUL1It2rKTnOfXyI0Iuyqf.dyn) (16.9 KB)

![DynamicBlock](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/ae604b06764aa913fb4200610f1b0c90e58391c6.gif)

And here are other posts with the same issue:

> [@Block.Blockreference not working](https://forum.dynamobim.com/t/block-blockreference-not-working/52946):
>
> Hi everyone, I am developing a script to create 3D elements from existing 2D blocks. When trying to select the 2D blocks by Name the node Block.Blockreference does not seem to work with some elements and I do not understand why, I have tried auditing the drawing and others but can’t workout what the issue is. I am using Civil 3D 2020 with Update 2 and Dynamo4Civil 2.4, I leave some screenshots below and any help would be much appreciated! Thanks in advance!

> [@Creating a new BlockReference doesn't copy DynamicProperties along](https://forum.dynamobim.com/t/creating-a-new-blockreference-doesnt-copy-dynamicproperties-along/56510):
>
> Hello everyone, I am trying to duplicate a BlockReference in Dynamo for Civil3D (2020) but when i try to do this all the DynamicProperties of this Block aren’t copied along: Also my Block in Civil3D doesn’t have my “Custom” tab and Custom DynamicProperties. Thanks in advance! Daan [Testfile Blockreference.dwg](https://forum.dynamobim.com/uploads/short-url/neHfLURYPinRryPbLLwV2GOzpH2.dwg) (511.2 KB) [Testfile for Blockreference .dyn](https://forum.dynamobim.com/uploads/short-url/lA3KJkW0VFkQ0J3S1hdghT8LAyk.dyn) (18.3 KB)
