# Add Name/Number to Block References in C3D

**URL:** <https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209>\
**Category:** Civil 3D\
**Created:** [September 19, 2022, 8:15pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209 "2022-09-19T20:15:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [September 19, 2022, 8:15pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/1 "2022-09-19T20:15:29Z")

</div>

Is there a way to add information to Blocks in C3D using dynamo so they can be identifiable individually?

I.E. If you had 15 blocks representing valves on a project site, can dynamo be used to number them 1-15? And then use that numbering to generate labels? Final step would be export Name/Number and Northing/Easting to a spreadsheet. I’m not sure if something like this is really possible with just block references and not utilizing the C3D parts (in the case of a valve).

---

<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:** [September 19, 2022, 9:17pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/2 "2022-09-19T21:17:21Z")

</div>

Sounds like a good use for block attributes. If you don’t want to see the value of the attribute, you could make it invisible:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/be4586a7e344070a49f42859d7e780a7b1241756.png)

Or put the attribute on a no-plot layer so it’s visible for the user but doesn’t show up in your plans.

This could all be accomplished with property set data as well. Just different buckets for the same information. Then you could use Dynamo to read the data from the block references and generate the labeling.

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [September 20, 2022, 12:34pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/3 "2022-09-20T12:34:28Z")

</div>

Thank you for the tip! Could you provide a little info on the difference between a block and block references in C3D? I see you have a whole host of nodes put together for block attributes, but I don’t see how I can get those to work with a block reference? Could you provide an example using your node AttributeDefinition.ByBlock to create an attribute for a block reference on say a valve?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b26b5475428b3e37f3cca0d8af711a7fea4d367.png)

---

<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:** [September 20, 2022, 1:09pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/4 "2022-09-20T13:09:24Z")

</div>

Blocks are the core building blocks (pun intended) in AutoCAD. They are simply collections of other objects. So that is why model space is actually a block! And each paper space layout is also a block. The _block definition_ is what you are editing when you use the block editor. When you insert a block, you are creating a reference to the block definition, which is a _block reference_. The confusion for most people is that “block references” are usually just referred to as simply “blocks.”

A block definition can contain attributes. Following the naming convention, those are called _attribute definitions_. Then when you create a block reference, it creates references to those attribute definitions, which are called _attribute references_. The attribute references are what allow each block reference to have unique values for the attribute.

Does that help?

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [September 20, 2022, 1:52pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/5 "2022-09-20T13:52:36Z")

</div>

Thank you for that info. Another question on this topic. Can attributes definitions be updated for blocks already existing in a drawing?

If I was sent a drawing that contained a bunch of blocks references for storm drain manholes could I add and update an attribute for those that would name them separately? (MH-1, MH-2, MH-3, etc). Or does the attribute definition have to be set before the block references are created, and then you can go in and modify after? Hopefully that question makes sense.

---

<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:** [September 20, 2022, 2:24pm UTC](https://forum.dynamobim.com/t/add-name-number-to-block-references-in-c3d/81209/6 "2022-09-20T14:24:25Z")

</div>

Yep, you can add/remove attributes whenever. That’s the power of blocks - one source of information for all of the references. Just remember to use ATTSYNC after making attribute edits.
