How to Remove All Definitions from a TIN Surface Using Dynamo/Python?

Hi everyone,

I’m looking for a way to remove all the definitions from a TIN surface using Dynamo/Python. The main goal is to update the definition of an existing surface (e.g., replacing it with new 3D faces or new boundaries) without deleting the original surface and creating a new one.

Is there a method or workflow to achieve this? Any guidance or examples would be greatly appreciated!

Thank you in advance!

Hi @ivega86WRT,

I don’t fully understand what are you trying to achieve. A surface needs some sort of definition to exist ( e.g. add triangles, cogopoints, breaklines…). By removing all definitions you will get an empty surface and only will keep name and style. If the goal is to add definitions (faces and boundaries) why not create the surface from scratch with the correct definition?

You can also get a name and style list from existing surfaces in case you want to keep that info.

Hi @JaLo,

Thank you for your reply! I understand your point, and you’re absolutely right that a surface requires definitions to exist. However, my goal here is to update an existing surface with a new definition while preserving its references within the project. This surface might already be linked to sheets, tags, or other elements that I wouldn’t want to disrupt by creating a new surface from scratch.

Removing all definitions would be a first step to ensure that the older definitions, which may have become superseded, are cleared out. This way, I can add the new definitions (e.g., updated 3D faces or boundaries) without affecting the surface’s existing references or associations.

Hi @ivega86WRT,

You could erase all operation using python
Autodesk Civil 3D Help | SurfaceOperationCollection Members | Autodesk

1 Like

This is what I was looking for. Thanks so much!