Why Is Dynamo Duplicating Element When Should Only Modify Existing Element

I have created the following script from various sources which I have referenced in the groups in actual script and links below to accomplish certain tasks as NEW to Dynamo. I have slightly deviated from original solution where applicable with my limited knowledge of Dynamo.

This is only one of the issues I am having with the script, but don’t seem to be getting any response on it so simplifying one issue at a time with the main topic here: Align Top Bottom Column with Toposolid - Revit - Dynamo (dynamobim.com)

ISSUE
Dynamo Seems to be duplicating the element so that I have in this case 2 columns on the same X and Y Coordinates as seen in this image

Any suggestions, comments or query in order to resolve from community would be greatly appreciated!!!

Files and Images
Topo Solid Sample Project.rvt (2.2 MB)
Column - Coordinate & Level.dyn (94.3 KB)

Link Resources Used

For interest - The End Goal
I currently work for a civil company that specializes in Piling and Sub Surface Grouting. This will be for the Sub Surface where we are given a surface and sub surface (CAD models) from the main contractor and need to give the Top and Bottom of a borehole and it’s coordinates. The attached model shows a few columns for testing purposes and would be a round borehole (rather than I-shaped column used in the sample project). This script once functional would ease workload where a may have anywhere from 50 to 2000 of these boreholes on a site and I need to supply a top and bottom for each and it’s XY Coords.

Tip: Zoom in so the nodes and information is readable when exporting the workspace, Dynamo will use the whole graph.
Your graph is creating new elements
image

Some notes
You were missing surfaces where the slope was greater that 0.5 (z < 0.5). You can get all where Z is positive and greater than 0

Turn off previews and use coloured geometry to help visualise. Use bounding box max and min for the lines

Graph modify the existing Revit families (see full graph below)
image

Revised graph

1 Like

Mike,

Thanks a million for your edits on the original script which problem solved a number of issues. Given you credit too in the script where your modifications were included though would only point to this forum post

The only part I am still trying figure out is turning off geometry previews. but that seems like a nice to have but not critical

Script for others
Column - Coordinate & Level.dyn (104.0 KB)

1 Like

When you haven’t accounted for display as you go I usually I find it best to disable everything and then start enabling the parts you want.

In your graph hit ctrl+a to select everything on canvas. Then right click on the workspace background and select ‘disable geometry preview’ (or some similar language). There will no longer be ANY geometry preview.

If you want partial display you can add a new code block that accepts the geometry you want to display, or enable it on a single node by right clicking it.