# Close duplicate types dialog box

**URL:** <https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875>\
**Category:** Uncategorized\
**Created:** [September 7, 2020, 10:27pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875 "2020-09-07T22:27:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [September 7, 2020, 10:27pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/1 "2020-09-07T22:27:05Z")

</div>

Hi, I’m using springs copy from view to view. Awesome node. However I’m doing alot of views and getting heaps of Duplicate Types dialog boxes. Can dynamo close these? 🙂

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/067f35f972bf5330de2e94315f92db65dcd1eeeb.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 8, 2020, 7:25pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/2 "2020-09-08T19:25:51Z")

</div>

Unlikely without some modification of the node.

On the flip side, are you certain you want to just copy them over without notifying the user? It’s may be that someone should review each of these alterations in the context of the view to see ‘what broke graphically’, or at least to let the end user know that ‘duplicates’ aren’t necessarily the same for these element types.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [September 8, 2020, 8:00pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/3 "2020-09-08T20:00:45Z")

</div>

Thanks Jacob. We have 3 separate apartment buildings with some typical details. The copy of the typical detail section is purely a reference detail and only the one building will be used for printing details.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 28, 2020, 9:01pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/4 "2020-10-28T21:01:00Z")

</div>

Can python search for images on the screen. Say you took a small screen shot of the “OK” and then had python searching for that image as the script plays and if it finds it, it will move the mouse and click on it. I used to use pascal or scar or something along time ago to look for colours and images to move the mouse and cheat in games 🤣

This would be good for closing some unnecessary dialog box warnings when I’m running a script to clean up multiple files to transmit

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 29, 2020, 1:17am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/5 "2020-10-29T01:17:34Z")

</div>

It’s likely doable, but not functional due to the processing cost of ‘watching’ your screen’s pixels non-stop, and there are better options out there for that type of automation.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 29, 2020, 1:53am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/6 "2020-10-29T01:53:33Z")

</div>

Thinking about it. Kind of script I want to run in the background so the window wouldn’t even be seen in some cases. 😅

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 29, 2020, 2:46am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/7 "2020-10-29T02:46:51Z")

</div>

This is worth reviewing closely: [The Building Coder: Suppress Unwanted Dialogue](https://thebuildingcoder.typepad.com/blog/2010/08/suppress-unwanted-dialogue.html)

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 29, 2020, 3:14am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/8 "2020-10-29T03:14:51Z")

</div>

I was looking at the below before too. Is the code in the link python? Would it just be put in a python node in your script to close dialogs?

> [@Cant sucessfully implement the IFailuresPreprocessor interface](https://forum.dynamobim.com/t/cant-sucessfully-implement-the-ifailurespreprocessor-interface/50708/3):
>
> hello @ramoon.bandeira you are missing the instance of the class on the method (self), suddenly a parameter is missing from the PreprocessFailures fonction (method) 2 examples of classes with a double wall creation class DuplicateMarkSwallower(IFailuresPreprocessor): def PreprocessFailures(self, a): failures = a.GetFailureMessages() for f in failures: id = f.GetFailureDefinitionId() if BuiltInFailures.OverlapFailures.WallsOverlap == id: a.DeleteWarning(f) return FailureProc…

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 29, 2020, 9:14am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/9 "2020-10-29T09:14:31Z")

</div>

Not python - that is C and would require building an running a full application using something like visual studio prior launching Dynamo. Converting it to a Dynamo view extension may be a better idea though.

Converting it to Python may or may not work, Feel free to try. Perhaps using it as a means to launch the external application and close it would work.

Basically you have asked to automate outside what I believe to be the capacity for Dynamo, and you’ll get better results with a different automation tool.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [November 23, 2020, 9:00pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/10 "2020-11-23T21:00:25Z")

</div>

Since I had so many of the same dialog boxes to close in revit with a script. Ended up using Buzof. Handy program to close any reoccurring dialog box

---

<div class="post-metadata">

**Author:** ![Fernand77](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@Fernand77](https://forum.dynamobim.com/u/Fernand77)\
**Post date:** [February 7, 2021, 7:20pm UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/11 "2021-02-07T19:20:29Z")

</div>

@vanman  
I have the same problem.

May I ask how you finally solved it?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [February 8, 2021, 1:21am UTC](https://forum.dynamobim.com/t/close-duplicate-types-dialog-box/54875/12 "2021-02-08T01:21:18Z")

</div>

Hi Fernand. I just used buzof. It saves the dialog boxes you want clicked and just runs in the background

> **[Buzof - Annoying windows eliminator - Basta Computing](https://basta.com/buzof)**
>
> Automatically answer, close, dismiss or minimize annoying and recurring windows including messages and prompts.
