Creating feature lines from polylines

Hi,

I’d like to create feature lines from polylines, but the FeatureLine.ByObject node from Civil3DToolkit gives me the following warning:

FeatureLine.ByObject expects argument type(s) (Autodesk.Civil.DynamoNodes.CivilObject), but was called with (Autodesk.AutoCAD.DynamoNodes.Polyline).

The Polylines come from TinSurfaceExtensions.ExtractContoursByElevationsInterval node, so they are already existing object in Civil 3D.

How should I solve this problem?

Hi,
You can use those nodes.

image

1 Like

Thanks for the tip, but it doesn’t work in my case. Maybe because I have closed polylines.

You can convert to curve geometry first then use the node : Polycurve.CloseWithLine.

1 Like

Thanks again, but it didn’t work in my case, because I originally had closed polylines…

Never mind, I solved it with python script.

Share your Dyn file if you want.