Hi,
I’m using Dynamo for Civil 3D, and in the Civil3DToolkit package for Civil 3D 2024, there used to be a node called:
BlockReferenceExtensions.ByGeometry
This node allowed me to create a BlockReference directly from geometry.
However, in Civil 3D 2026, this node seems to be missing from the Civil3DToolkit package.
Is there an equivalent node in Civil 3D 2026 that can create a BlockReference from geometry like this one?
Or has this functionality been moved or replaced?
Can’t recall the exact first node’s name, but it is under the block menu of the library and is something like Block.ByName.
Next use an Object.ByGeometry other other specific node to generate the objects in the new block from step 1 instead of in model space.
Finally generate a new block reference using BlockReference.ByOrigin or BlockReference.ByCoordinateSystem
I recommend you shift all geometry to the origin before sending into into the new block (nodes like BoundingBox.ByMinimumVolume, BoundingBox.ContextCoordinateSystem, CoordinateSystem.Inverse, and Geometry.Transform` can help there), otherwise the block reference will be at your UCS origin instead of at a reasonable location in the block which will lead to downstream issues.