Block references rotation

Hello everyone
I have the block references (not dynamic)


And i try to rotate them. So I use this ,code:

But it does not work. What is wrong here?

Sorry for late answer.
The node CoordinateSystem.Rotate just rotate the Coordinate system in the Dynamo Workspace, it doesn’t rotate the block reference. If you want to rotate the Block Reference when insert you can use the node BlockReference.Create and then add a rotate to the block. For example from a bearing along an alignment, like this

If you want to rotate existing block references, use the node in Civil 3D Toolkit “ObjectExtension.SetParameterValueByName”
image

1 Like

Thank you so much, I will check it soon

1 Like

yeah, it works. i`m so appreciate

1 Like

Starting in Civil 3D 2025.1, you can use the Object.SetRotation node to set the rotation of block references.

4 Likes

That is so good!!
I will start check all our company script and replace a bunch of nodes

1 Like