Dynamo to place blocks along Alignments in Civil 3d

Hi everyone,

I’m using Dynamo with Civil 3D to place blocks along a corridor, but I’m facing a problem:

The blocks are being placed far away from the corridor.

I’m using BlockReference.Create, and the positions seem to be off. I suspect the issue is related to how the point coordinates are calculated — maybe they’re not aligned with the corridor’s coordinate system.

Has anyone run into this?

Thanks for any help!

Hi @adamothman167,

I think sharing some more data (screenshots, sample files, etc.) would help.

Check if the contents of the block itself are in the 0,0,0 coordinate, cause if I’m not mistaken the node inserts the Block Reference on the exact coordinates you put in - so it works like a sum of coordinates.

1 Like

Placing_Objects_along_a_Corridor_CORRIGE_2.dyn (64.8 KB)

This is my dyn file , can you check it please

i did but it’s not working

Your script seems to be fine, can you share an example file with us in order to test it?

Hola amigo @adamothman167 check if your Block that you try to insert is placed centered in the origin in block editor, that could cause the off of the insertion point, share also your .dwg that have your block definition and Aligment to test if is posible please, you can use Curve.Plan Att parameter or PointAtParameter if your coordinate system doesn’t aligned with the corridor, check this others posts, may be help you!