# Access attributes in blocks

**URL:** <https://forum.dynamobim.com/t/access-attributes-in-blocks/38147>\
**Category:** Civil 3D\
**Created:** [July 10, 2019, 12:47pm UTC](https://forum.dynamobim.com/t/access-attributes-in-blocks/38147 "2019-07-10T12:47:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.vandorst](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@paul.vandorst](https://forum.dynamobim.com/u/paul.vandorst)\
**Post date:** [July 10, 2019, 12:47pm UTC](https://forum.dynamobim.com/t/access-attributes-in-blocks/38147/1 "2019-07-10T12:47:32Z")

</div>

How can I access attributes in AutoCAD-blocks with dynamo?

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [July 10, 2019, 11:22pm UTC](https://forum.dynamobim.com/t/access-attributes-in-blocks/38147/2 "2019-07-10T23:22:48Z")

</div>

I have used data extraction in Civil3D for this- but it was prior to Dynamo for C3D being released.

The nodes in D4C3D generally seem to be for C3D-specific objects (such as corridors or alignments) rather than standard AutoCAD objects such as blocks- but this does not mean it is not possible.

I am wondering if there is a list of D4C3D nodes somewhere ?  
[https://forums.autodesk.com/t5/civil-3d-forum/dynamo-for-civil-3d-where-can-i-see-help-information-of-nodes/td-p/8754479](https://forums.autodesk.com/t5/civil-3d-forum/dynamo-for-civil-3d-where-can-i-see-help-information-of-nodes/td-p/8754479)

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [July 26, 2019, 3:48pm UTC](https://forum.dynamobim.com/t/access-attributes-in-blocks/38147/3 "2019-07-26T15:48:38Z")

</div>

@paul.vandorst This will be covered in the new release most likely with a set of dedicated nodes. You can see for yourself from the beta website (you need to be subscribed to the Civil 3D Futures Portal).  
In the meantime you can leverage Python and .NET.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/df6ec24f4712af78fcaa8840dae3fd5ad674a83a.png)

Have a look at this Dynamo Graph [GetBlockReferenceAttributes.dyn](https://forum.dynamobim.com/uploads/short-url/tirzf9sZKResaG7G5qgD41QTgj0.dyn) (5.9 KB)

---

<div class="post-metadata">

**Author:** ![Daniel.Gijsbers](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel.gijsbers/32/57696_2.png) [@Daniel.Gijsbers](https://forum.dynamobim.com/u/Daniel.Gijsbers)\
**Post date:** [January 18, 2020, 1:45pm UTC](https://forum.dynamobim.com/t/access-attributes-in-blocks/38147/4 "2020-01-18T13:45:41Z")

</div>

Building on top of Paolo’s nice Python script I would like to share this script that reads out the attributes of blocks I use for Shared Coordinates.

Typically I use this Excel file to define Sites in Revit. These Defined Sites in Revit have ‘host’ the different Shared Coodinates.  
[Define Sites for Shared Coordinates in Revit](https://youtu.be/vyDijYjE36A)

[ExampleDrawing.dwg](https://forum.dynamobim.com/uploads/short-url/r9WZC39msG7F3zAK0flFZJLKWlM.dwg) (898.5 KB) [ExampleDrawing.xlsx](https://forum.dynamobim.com/uploads/short-url/5ku7ExJG9k8SFK2Kh2qAjJYgfbn.xlsx) (16.0 KB) [GetSharedCoordinatesBlocks.dyn](https://forum.dynamobim.com/uploads/short-url/a4jhDxQzpGsD1at34WduqGrZ0eM.dyn) (65.8 KB)
