# Select AutoCAD block reference by object handle

**URL:** <https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175>\
**Category:** Civil 3D\
**Created:** [January 7, 2020, 12:15pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175 "2020-01-07T12:15:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliotgr2010](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@elliotgr2010](https://forum.dynamobim.com/u/elliotgr2010)\
**Post date:** [January 7, 2020, 12:15pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/1 "2020-01-07T12:15:49Z")

</div>

I currently have a routine which updates block attributes from an excel spreadsheet. Works perfectly fine however, I would like to refine this slightly by using each blocks unique object handle to select the block in the dwg and subsequently use my routine to update attributes.

Is there anyway to select blocks using there object handle via python/custom nodes etc ?

Any help with this would be greatly appreciated !

---

<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:** [January 7, 2020, 3:06pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/2 "2020-01-07T15:06:49Z")

</div>

Civil 3D Toolkit

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7c2a5c3c6bd44a20d1eed87964e6343e93e9068.png)

---

<div class="post-metadata">

**Author:** ![elliotgr2010](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@elliotgr2010](https://forum.dynamobim.com/u/elliotgr2010)\
**Post date:** [January 7, 2020, 3:34pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/3 "2020-01-07T15:34:27Z")

</div>

Thanks for your reply Paolo - I had actually tried to use that node originally as I couldn’t seem to get around the error below. I’m essentially trying to update each attribute from a list of attributes and selecting the blocks using a list of handles. Hopefully the image makes more sense !

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/5151c4539bc78c67719c9313b43f5f0f40f7fe80.png)

Cheers

---

<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:** [January 7, 2020, 4:14pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/4 "2020-01-07T16:14:34Z")

</div>

@elliotgr2010 the input type is BlockReference and not Object.  
Download the latest version

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/4700d86b0887effbbaa66abbe04b458018ec86e4.png)

---

<div class="post-metadata">

**Author:** ![elliotgr2010](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@elliotgr2010](https://forum.dynamobim.com/u/elliotgr2010)\
**Post date:** [January 7, 2020, 8:11pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/5 "2020-01-07T20:11:42Z")

</div>

Thanks Paolo - Works like a charm !

---

<div class="post-metadata">

**Author:** ![mkamelza](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mkamelza](https://forum.dynamobim.com/u/mkamelza)\
**Post date:** [March 3, 2022, 5:45pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/6 "2022-03-03T17:45:14Z")

</div>

Hello Paolo,  
I am getting this error, is there any way to fix it?

 ![Error1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/4/1400537bd846ca142d13cb909da05a82e033e32e.jpeg)

---

<div class="post-metadata">

**Author:** ![david\_licona](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_licona/32/123672_2.png) [@david\_licona](https://forum.dynamobim.com/u/david_licona)\
**Post date:** [March 4, 2022, 12:06pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/7 "2022-03-04T12:06:25Z")

</div>

what Civil 3D version are you currently using ?

---

<div class="post-metadata">

**Author:** ![mkamelza](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mkamelza](https://forum.dynamobim.com/u/mkamelza)\
**Post date:** [March 4, 2022, 1:55pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/8 "2022-03-04T13:55:48Z")

</div>

2022 and 2021

---

<div class="post-metadata">

**Author:** ![Joel.Ocampo](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@Joel.Ocampo](https://forum.dynamobim.com/u/Joel.Ocampo)\
**Post date:** [April 2, 2022, 4:08am UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/9 "2022-04-02T04:08:23Z")

</div>

Is this works with civil 3d not in plain CAD program? Thanks

---

<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:** [April 2, 2022, 4:21am UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/10 "2022-04-02T04:21:16Z")

</div>

Dynamo is not currently available for any of the other AutoCAD platforms besides Civil 3D.

---

<div class="post-metadata">

**Author:** ![SZABO.PETER](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/szabo.peter/32/137206_2.png) [@SZABO.PETER](https://forum.dynamobim.com/u/SZABO.PETER)\
**Post date:** [May 4, 2022, 12:07pm UTC](https://forum.dynamobim.com/t/select-autocad-block-reference-by-object-handle/45175/11 "2022-05-04T12:07:30Z")

</div>

I also experienced the same issue. I get this message when I want to select Pipe and pressurepipe objects.
