# Create a Box Sweep around Piping Systems

**URL:** <https://forum.dynamobim.com/t/create-a-box-sweep-around-piping-systems/76625>\
**Category:** Geometry\
**Tags:** dynamo\
**Created:** [May 17, 2022, 7:46am UTC](https://forum.dynamobim.com/t/create-a-box-sweep-around-piping-systems/76625 "2022-05-17T07:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chanelli\_Leng](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@Chanelli\_Leng](https://forum.dynamobim.com/u/Chanelli_Leng)\
**Post date:** [May 17, 2022, 7:46am UTC](https://forum.dynamobim.com/t/create-a-box-sweep-around-piping-systems/76625/1 "2022-05-17T07:46:59Z")

</div>

Hello, I am working on a project that requires me to create a protective box around pipe systems. I have manages to code the sweep using dynamo.

 ![Inital Sweep Code](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/0/60e83b78485c6c0e475dac69d2d22835752b7f6c.png)

 ![Inital Sweep](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5c11d99c93975704a9d6c9430c657edcddd09aec.png)

However, there is a break in the line system which does not register the pipe fittings’ center curve line. Causing an incomplete sweep around the pipes.

 ![Sweep not Joined](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41f5c2b6e5dcabdb70dde8f35049cff2b2033a08.png)

 ![Sweep not Joined dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/1777efa425dbfff50b5d906740f0a2b7be2c659c.png)

I have managed to obtain the center pipe line using previously discussed forum, [PolyCurve from a Pipe Network](https://forum.dynamobim.com/t/polycurve-from-a-pipe-network/48244). But the sweep does not appear and give me an error.

 ![Current Sweep](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cfc1b98f99e60de69b43b05b93cae9f22b0134ea.png)

 ![Current Sweep Code](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd07b9458b0067469ffa0fb63ce5903b5e95bfe6.png)

I am unsure how to solve this as i am not very familiar with dynamo. Would like to know if there is any suggestion to this problem.

Thank you in advance.  
[Masonry Box Sweep.dyn](https://forum.dynamobim.com/uploads/short-url/97rcGhg4S4LxDc57cpuHMCIwXZt.dyn) (75.5 KB)
