# Clash Detection By Categories Script

**URL:** <https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798>\
**Category:** Share\
**Tags:** revit, geometry, dynamo\
**Created:** [November 1, 2020, 7:07am UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798 "2020-11-01T07:07:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaialcan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaialcan/32/114853_2.png) [@jaialcan](https://forum.dynamobim.com/u/jaialcan)\
**Post date:** [November 1, 2020, 7:07am UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/1 "2020-11-01T07:07:52Z")

</div>

Hi all,

I recently developed a Clash Detection By Categories script that may be of help to any of you.

When running the script, a dialog pops up to select the categories you would like to clash. It will create one 3D focused view for each clash detected. You can also select the colours you want for the categories.

There is some package dependency to get it working. Attached you a screenshot;

 ![Dependency](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/a/3aacc5d6659298a3ab502508204d7584785dc8f3.jpeg)

This has been developed and tested using Revit 2020 and Dynamo 2.3

UPDATE 08.11.2020, I have reviewed the script to solve Data Shape UI Custom node according to @ochen95 issue.  
[Clash Detection By Categories\_original.dyn](https://forum.dynamobim.com/uploads/short-url/rbrIfW4pbxjOFlezNnzZRk0u0e4.dyn) (327.9 KB)

Cheers  
Jaime

---

<div class="post-metadata">

**Author:** ![ochen95](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@ochen95](https://forum.dynamobim.com/u/ochen95)\
**Post date:** [November 5, 2020, 1:55pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/2 "2020-11-05T13:55:13Z")

</div>

Hi I Have one problem with your script. I dowload all packages which you attached in scrren, but I have problem with this node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/eae604c52cbfddfb1603ff9d57aae1b5a32936e1.jpeg)

Some ideas why ?

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [November 5, 2020, 5:34pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/3 "2020-11-05T17:34:46Z")

</div>

That looks like the Datashapes UI.MultipleInputForm ++ node.

The dyn may have renamed the title and broke the association, try loading in a fresh node.

---

<div class="post-metadata">

**Author:** ![jaialcan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaialcan/32/114853_2.png) [@jaialcan](https://forum.dynamobim.com/u/jaialcan)\
**Post date:** [November 7, 2020, 8:51am UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/4 "2020-11-07T08:51:19Z")

</div>

Yes @ochen95 , I made some modifications to Datashapes UI.MultipleInputForm ++ node. However, you can follow @Robert_Younger advise and reload the node and I am sure it will work.

---

<div class="post-metadata">

**Author:** ![ochen95](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@ochen95](https://forum.dynamobim.com/u/ochen95)\
**Post date:** [November 7, 2020, 4:14pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/5 "2020-11-07T16:14:49Z")

</div>

> [@Robert\_Younger](#):
>
> That looks like the Datashapes UI.MultipleInputForm ++ node.
> 
> The dyn may have renamed the title and broke the association, try loading in a fresh node.

Yes, now it’s work. Thank you @Robert_Younger @jaialcan

---

<div class="post-metadata">

**Author:** ![akamzoldayeva](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@akamzoldayeva](https://forum.dynamobim.com/u/akamzoldayeva)\
**Post date:** [January 20, 2021, 11:01am UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/6 "2021-01-20T11:01:13Z")

</div>

Hi,Thank you a lot for your script, but I have two problems. I downloaded all packages, but still have problem. What can I do to solve this?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d13442a6adbf008cbe456f01c56ea2ca5a152bfd.png)

---

<div class="post-metadata">

**Author:** ![jaialcan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaialcan/32/114853_2.png) [@jaialcan](https://forum.dynamobim.com/u/jaialcan)\
**Post date:** [January 20, 2021, 6:34pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/7 "2021-01-20T18:34:09Z")

</div>

Hi @akamzoldayeva ,  
Happy to help but you made changes in my original script.  
I used the String from Object node to convert Categories from the model before going into Datashapes UI.MultipleInputForm ++ node for instance.  
Give it a try and let me know.  
Jaime

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [January 20, 2021, 6:49pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/8 "2021-01-20T18:49:57Z")

</div>

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

Hello, try checking your archi-lab version and replace the node as needed.  
For the allcategories node, that comes from MEPover (unless another package has an identical node)

---

<div class="post-metadata">

**Author:** ![akamzoldayeva](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@akamzoldayeva](https://forum.dynamobim.com/u/akamzoldayeva)\
**Post date:** [February 1, 2021, 12:17pm UTC](https://forum.dynamobim.com/t/clash-detection-by-categories-script/56798/9 "2021-02-01T12:17:01Z")

</div>

Hello again! I didn’t think you’d answer so soon, thank you very much! It turns out that I did not show you the image that I really wanted. I uploaded your file to my project again for the second time. But it doesn’t work again. I’ll attach a photo.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/6/d62925d5abd6f3142ad6e635190540c9719d18e6.png)  
I would like to get some advice, is it possible to create an excel file with all the clashed elements and its images, and is it possible to do this using your script? My task is to find clashes and create 1 document with images and object parameters and item IDs. Like from navisworks.  
Thank you!!
