Civil 3D Merge solids

I would like to merge multiple solids into one solid. I can get the solids from corridors, but I cannot able to merge them.

I try to use Solid.Union and Solid.ByUnion but none of them works. I always get the following error message:
Solid.ByUnion expexts argument type (s) (autodesk.DesignScript.Geometry.Solid), but was called with (Autodesk.AutoCAD.DynamoNodes.Solid).

What could cause this error?

Hi @SZABO.PETER,

Welcome! The Corridor.GetSolids returns AutoCAD solids, which means you need to convert them to Dynamo solids first before using Solid.ByUnion. So all you need to add is an Object.Geometry node after Corridor.GetSolids.

3 Likes

Thank you for the fast response.