# Model Management / Warning Resolution - Deleting Duplicate Area Boundary Lines

**URL:** <https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842>\
**Category:** Packages\
**Created:** [January 5, 2016, 1:49pm UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842 "2016-01-05T13:49:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emily\_Dunne](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emily_dunne/32/99318_2.png) [@Emily\_Dunne](https://forum.dynamobim.com/u/Emily_Dunne)\
**Post date:** [January 5, 2016, 1:49pm UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842/1 "2016-01-05T13:49:27Z")

</div>

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.

&nbsp;

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](https://www.youtube.com/watch?v=ngJ3efR7yCc) and [http://archi-lab.net/isolating-revit-warnings-by-category-wdynamo/](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](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](http://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.

&nbsp;

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.

&nbsp;

Thanks!

Em

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 5, 2016, 8:05pm UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842/2 "2016-01-05T20:05:44Z")

</div>

Hi Emily,

Below is the solution.

 ![Duplicate Elements](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/737890d7d432c17f5552ced60190a421d9c048cc.png)

---

<div class="post-metadata">

**Author:** ![Emily\_Dunne](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emily_dunne/32/99318_2.png) [@Emily\_Dunne](https://forum.dynamobim.com/u/Emily_Dunne)\
**Post date:** [January 6, 2016, 10:34am UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842/3 "2016-01-06T10:34:15Z")

</div>

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 🙂

Thanks!

Em

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [May 14, 2020, 7:00pm UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842/5 "2020-05-14T19:00:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [May 14, 2020, 7:00pm UTC](https://forum.dynamobim.com/t/model-management-warning-resolution-deleting-duplicate-area-boundary-lines/2842/6 "2020-05-14T19:00:24Z")

</div>


