Model Management / Warning Resolution - Deleting Duplicate Area Boundary Lines

Hello,

I am working on writing a script that will delete duplicate area boundary lines in a view. I’m not sure what approach to take with this.

 

I am able to Get Elements by Category/Level for the Category of AreaSchemeLines on Level 1…

I read this article and watched the related video on ‘Isolating Revit Warnings by Category with Dynamo’ : https://www.youtube.com/watch?v=ngJ3efR7yCc and http://archi-lab.net/isolating-revit-warnings-by-category-wdynamo/

I also looked at this link about ‘Remove Duplicate Revit Elements From List.dyf’ on Github about https://github.com/CAAD-RWTH/ClockworkForDynamo/blob/master/nodes/0.6.3/Remove%20Duplicate%20Revit%20Elements%20From%20List.dyf but I am not able to find this through a search in my Dynamo application. I do have Clockwork for Dynamo 0.7.x and Rhythm 2015.10.0 and archi-lab.net 2015.10.11 and I am running Dynamo version 0.8.2.2392 (I see a red 0.9.0.0 underneath)

I also am trying to understand what this does: Point.PruneDuplicates but I haven’t found much yet.

 

So I understand that in Revit, to fix this I would launch the warnings dialogue and then check a single element in the related warning dialogue and delete the element. In Dynamo, would I call the Area scheme lines, somehow convert the model curves to vectors then use the vector.pruneduplicates node? Would I call the warnings then isolate by type of “Highlighted lines overlap. Lines may not form closed loops” then filter a deletion process by some sort of delete 1 of two elements filter?

I would appreciate any advice. I am having a hard time wrapping my head around this.

 

Thanks!

Em

 

 

Hi Emily,

Below is the solution.

1 Like

Hey Kulkul,

This is cool! So it’s possible to pull all elements in a view, then get the elements at a specific index in the list - I didn’t know you could put that in a code block.

Then you’re filtering out the elements by indices. What surprises me is that the connection is between unique indices and indices instead of between duplicate indices and indices - seems counter-intuitive.

Do you have any recommendations on what I should read beyond the forum and primer to help me solve these type of open ended issues better?

I have really limited and non-academic coding experience (vba, php, javascript, api,ai etc.) that is mainly based on demands for automation and I’m totally new to Dynamo.

I look forward to testing this :slight_smile:

Thanks!

Em

 

 

Start a new topic with complete graph. This topic is very old.