Polyline generated from a hatch boundary gives object.geometry=null

Hello. I have a set of catchments (polylines) for a project generated from hatches. Some polylines give me a geometry of null. Do you know the reason why?

polyline_points.dyn (12.4 KB)

Hello!

The bottom most polyline has a duplicate point in the top-right corner:

Depending on your script, you might have the check the polycurve points for duplicates and delete them!

Edit: Just checked your script - apparently, Dynamo does this automatically now. It works for me without any errors. You might want to restart AutoCAD and Dynamo.

1 Like

Hi. Thank you for your answer! It’s good to know that the problem is caused by point duplicates in my polyline. Sadly I tried to deal with this issue using MAPCLEAN → Select All → Delete Duplicates (Tolerance 0.1, Linear objects, Points, Automatic) → Modify original objects but it detected 0 errors. Also just in case turned Civil off/on. Still Dynamo gives me a null value in that object. I have Civil 3D 2025 so the newest version.

I think you are using 2025 or 2025.1.
If you update to the newest version (2025.2.3), this problem will go away.

There was a bit of a disruption between 2025.1 und 2025.2 as Dynamo was migrated to a newer .NET-Framework (or something along those lines). Some nodes from before the update won’t work with 2025.2. If you are just starting out, I’d would strongly recommend to update and go from there - it will be a lot more streamlined.

If you’ve already built excessive scripts, I think you’ll have to “sanitize” your inputs first. Performing _MAPCLEAN with “Delete duplicates”, “Dissolve pseudo nodes” and “Zero length objects” worked for me.

Thank you :slight_smile:. It worked!