# Adding pipe insulation

**URL:** <https://forum.dynamobim.com/t/adding-pipe-insulation/14578>\
**Category:** Revit\
**Tags:** revit, mep\
**Created:** [September 5, 2017, 11:11pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578 "2017-09-05T23:11:18Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 5, 2017, 11:11pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/1 "2017-09-05T23:11:19Z")

</div>

I’m trying to find (or build) a solution for adding pipe insulation based on two parameters: system type and pipe size. There are a few discussions around this topic but I just wasn’t able to find anything working. This function would be a great addition to Revit standard tools actually… Any thoughts?

---

<div class="post-metadata">

**Author:** ![Christian\_Vestesen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Christian\_Vestesen](https://forum.dynamobim.com/u/Christian_Vestesen)\
**Post date:** [September 6, 2017, 5:06am UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/2 "2017-09-06T05:06:34Z")

</div>

Hi Ivanm,

Can you post your work from Dynamo so far? Then I can see your thoughts and maybe guide you in the right direction.

Kind regards 🙂

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 6, 2017, 9:00am UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/3 "2017-09-06T09:00:32Z")

</div>

Seeing as this has been asked before a few times I thought I’d add it to my MEPover package:

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

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 6, 2017, 5:59pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/4 "2017-09-06T17:59:31Z")

</div>

Thank you Christian. So far i don’t really have anything logical. I found some bits and pieces but hoping that more advanced users could guide me through this journey. I found a block that deletes all the insulation which i think would be the the right start…

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 6, 2017, 6:01pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/5 "2017-09-06T18:01:13Z")

</div>

T\_Pover, could you please explain what code above is doing?

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 6, 2017, 6:25pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/6 "2017-09-06T18:25:55Z")

</div>

Well the node is pretty straight forward, it just adds insulation to the selected pipes/ducts. All the other logic (filtering by system type and size) you will have to set up as input to this node. I guess you should first figure out what you want to do: what insulation type should be added to which pipes? Define your criteria and work from there.

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 6, 2017, 9:59pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/7 "2017-09-06T21:59:32Z")

</div>

Let’s say for all S-MPS (steam) system pipes ø4" and greater I want to create 4" thick insulation for smaller than 4" I want 2" of insulation. How do i filter it? What is the proper way to sort by multiple conditions (IFs) in Dynamo?

---

<div class="post-metadata">

**Author:** ![Christian\_Vestesen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Christian\_Vestesen](https://forum.dynamobim.com/u/Christian_Vestesen)\
**Post date:** [September 7, 2017, 6:56am UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/8 "2017-09-07T06:56:31Z")

</div>

Take a look at “FilterByBoolMask” and “String.Contains”. FilterByBoolMask filters the true and false statement you’ll get from String.Contains.

In “String.Contains” you could filter it by the System Name X and afterwards use “Greater than or equals” to get the correct pipe size.

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 8, 2017, 4:31pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/9 "2017-09-08T16:31:00Z")

</div>

ok, first of all I need to delete all insulation in the file.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/ac76d71aa966563ae5c445ef2ee71186c8c2e9ad.png)

then i want to read an excel spredsheet and create lists  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4fb14d7ced8297d7d3e20d522c337b9ca64c32a1.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/4/d42ac1ab10c27ecb7fa38b8022107949e14e58b5.jpg)

now i’m not sure how to filter elements by each system type and “apply” insualtion…

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 8, 2017, 5:05pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/10 "2017-09-08T17:05:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8b07accf42d611fba900ff29aa71d975991b204f.png)  
That will get you the insulation thickness based on system type and pipe diameter.

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 8, 2017, 6:21pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/11 "2017-09-08T18:21:56Z")

</div>

Nick, is there a way to deal with lists to get the same results? Following your example i would need to create chunks of code per each system type and diameter… what i’m trying to do is read this info from Spreadsheet and create generic logic for every type… maybe i need loop of something 🙂

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 8, 2017, 6:35pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/12 "2017-09-08T18:35:53Z")

</div>

It’ll work with lists. You’ll just need to play with the lacing a bit and maybe use levels on curtain nodes.

---

<div class="post-metadata">

**Author:** ![ivanm](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ivanm](https://forum.dynamobim.com/u/ivanm)\
**Post date:** [September 8, 2017, 8:25pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/13 "2017-09-08T20:25:08Z")

</div>

Ok, thanks for hints!

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 22, 2020, 3:24pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/16 "2020-04-22T15:24:45Z")

</div>

Please start a new post with images of what you’ve tried and where you’re running into issues.

---

<div class="post-metadata">

**Author:** ![dmit0108](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dmit0108](https://forum.dynamobim.com/u/dmit0108)\
**Post date:** [April 23, 2020, 7:23am UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/17 "2020-04-23T07:23:42Z")

</div>

> [@Christian\_Vestesen](#):
>
> “String.Contains”

Hi Nick

Here are some screenshots. I followed up ivanm’s work, and modified that a bit.  
I could finaly manage to add insulation on certain dimensions pipes with certain insulation thicknesses.  
But with pipe fittings I cannot do it. I am trying to cling to any pipe fittings parameter.(I could do with “Diameter” for pipes), but have no success so far. If you could take a look please, what could be changed in script so it could work.  
ss 1-4 pipe insulation, ss 5-7 pipe fittings insulation.

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/53bd27cdb898aa9f4bf40e5fae47ac9ccc827eef.png) ![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/456f2c80fd18835cf8f2d5c6388149c5b9ad818b.png) ![3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/6/b6a24581d5cbc930b7c62933cd253582ee549856.png) ![4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2cc779e2c64cac485deedc6dee312b04ab014b8d.png) ![5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f08241551b096a34003f8ffbdec207757e3ac586.png) ![6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87f0ad2cae758f6fba846458aa41f53937c19c70.png) ![7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6df6f0f43ecf90e63cdb87001903f2ae7391d7b4.png)

Please let me know if I could upload some information. Thanks!

---

<div class="post-metadata">

**Author:** ![dmit0108](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dmit0108](https://forum.dynamobim.com/u/dmit0108)\
**Post date:** [April 23, 2020, 8:50am UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/18 "2020-04-23T08:50:22Z")

</div>

Thank you Christian !  
But I am really focused to solve the situation over here so that Dynamo finds in “Size” parameter, substring “76”. It should not be difficult, I just dont know how to connect that area properly.

 ![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/be219581dc3a682dbc14d5514f4fcf379b270935.jpeg)  
 ![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/a/3ae9b3808a5e651bcb01455da7021ff4075e32c2.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 23, 2020, 3:02pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/19 "2020-04-23T15:02:40Z")

</div>

@dmit0108 My last response may have been unclear. Please post all of this information as a new thread. New questions require new threads and this one is already 3 years old anyway.

---

<div class="post-metadata">

**Author:** ![gokhanozhim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gokhanozhim/32/40810_2.png) [@gokhanozhim](https://forum.dynamobim.com/u/gokhanozhim)\
**Post date:** [May 11, 2020, 1:08pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/20 "2020-05-11T13:08:35Z")

</div>

Check out this video about adding insulation type and thickness according to pipe system type. Thank you for python codes @T_Pover

[![](https://img.youtube.com/vi/CimsChpt_iI/hqdefault.jpg "Adding Insulation Type And Thickness To The Pipes Automatically With...") ](https://www.youtube.com/watch?v=CimsChpt_iI)

---

<div class="post-metadata">

**Author:** ![EC\_EMA](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@EC\_EMA](https://forum.dynamobim.com/u/EC_EMA)\
**Post date:** [June 25, 2021, 2:01pm UTC](https://forum.dynamobim.com/t/adding-pipe-insulation/14578/21 "2021-06-25T14:01:27Z")

</div>

Hi,

This script is awesome! Is there a way to get it?

Best regards  
Etienne
