Select AutoCAD block reference by object handle

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 !

Civil 3D Toolkit

image

2 Likes

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 !

Cheers

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

2 Likes

Thanks Paolo - Works like a charm !

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

what Civil 3D version are you currently using ?

2022 and 2021

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

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

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