Hello everyone,
I’ve been trying for a while to create a Dynamo script for Civil 3D 2026 that generates 3D solids from a typical cross section (for example, a hydraulic channel section) extruded along a path defined by a 3D polyline.
Here’s the general workflow of my graph:
-
I define or import the section as a closed list of XY coordinates, e.g.:
sectionXY = [ [-0.25,0.00], [0.25,0.00], [0.25,0.40], [0.15,0.40], [0.15,0.10], [-0.15,0.10], [-0.15,0.40], [-0.25,0.40], [-0.25,0.00] ]; -
I create the points with
Point.ByCoordinatesand then build the closed profile usingPolyCurve.ByPoints. -
I select one or more Polyline3D objects from the DWG to use as paths.
-
I use Curve.SweepAsSolid or alternatively Solid.BySweep.
-
Finally, I try to import the result into AutoCAD using AutoCAD.Object.ByGeometry (connected to
Document.CurrentandModelSpace).
The problem is:
-
When I connect a Watch node to
Curve.SweepAsSolid, I see outputs listed, but no geometry appears in either Dynamo (no 3D preview) or AutoCAD. -
When I feed those outputs into
Solid.ByGeometry, I only getnull. -
So far, no solids are actually created in the DWG or visible in Dynamo’s 3D background preview.
I have already checked:
-
The section is closed and planar.
-
Lacing is set to Cross Product.
-
The 3D background preview is enabled.
-
I’m working in Model Space and on a visible layer.
Has anyone run into the same issue with Dynamo 2026 + Civil 3D?
Could it be related to how Curve.SweepAsSolid outputs AutoCAD DBObjects that can’t be read by Dynamo’s geometry nodes, or is there a specific node required to “bake” them into the DWG?
Thanks in advance for any help or suggestions!






