Dynamo throwing error like "The document already has a surface with the same name.", CogoPointGroup.ByCogoPoints operation failed. The document has a point group with the same name

Hello Dynamo users,

I am running a Dynamo script in and getting errors such as:

  • “The document has a surface with the same name.”

  • “The document has a point group with the same name.”

It appears the script is trying to create objects that already exist in the drawing. I had always understood that rerunning a Dynamo script would refresh or overwrite previously created data, rather than stopping with duplicate-name errors.

At the moment, I have to manually delete the existing surfaces and point groups before rerunning the script, which is quite tedious.

Has something changed recently, or is there a recommended way to make Dynamo automatically overwrite, update, or delete existing objects with the same names before creating new ones?

Any help would be greatly appreciated.

Hi @oliverkisera just a friendly reminder…please in the your future post, please always set the post categori at least ,so we all know whats it is about :wink:

can i set post category after posting

yeas always :wink:

where is it, is it in this place having drop down arrow with civil 3d name?

if thats the case then i think the civil 3d category works for my case, because is related to warnings created in relation to objects that already exist within the civil 3d model space, Im trying to figure out how to make dynamo for civil 3d to write a fresh these data everytime we run it, instead of throwing for me warnings that such objects already exist, I added more nodes to the script and everytime i run it, it should just be writing the information a fresh, any help will be valuable to me

Look into the Civil 3D documentation on Element Binding to start with.

Hello, I’ve looked into it, still can’t figure it out, or could it be that I need to reinstall the packages I’m using like camber, arkanace and so on, I never used to have these warnings even three days ago, when I run the script, it used to run and write the new data a fresh without warning me that such data exist within the drawing,