# Creating walls from CAD Files

**URL:** https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637
**Category:** Revit
**Tags:** dynamo
**Created:** [September 10, 2023, 6:45pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637 "2023-09-10T18:45:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![khaliboay](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@khaliboay](https://forum.dynamobim.com/u/khaliboay)
#### Post date: [September 10, 2023, 6:45pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/1 "2023-09-10T18:45:56Z")

</div>

Good day, i created walls from CAD files in dynamo but all the created walls comes as double walls attached together. How can i make the mid point reference to create a single wall not double walls attached from the middle. Below is a photo of the issue.

 ![the ıssue](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8b71239e9e2165955d6cce64d26200e2fe0d0890.png)

---

<div class="post-metadata">

### Author: ![khaliboay](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@khaliboay](https://forum.dynamobim.com/u/khaliboay)
#### Post date: [September 10, 2023, 6:46pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/2 "2023-09-10T18:46:50Z")

</div>

And here is the script i created

 ![CAD TO REVIT](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b70275f03c5916bce3ec9fec6229a79dec63f5fd.png)

---

<div class="post-metadata">

### Author: ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)
#### Post date: [September 10, 2023, 7:24pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/3 "2023-09-10T19:24:14Z")

</div>

Filter by CADLayer  
Assing a WallType per Layer comes to mind

---

<div class="post-metadata">

### Author: ![mavs013](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mavs013/32/155471_2.png) [@mavs013](https://forum.dynamobim.com/u/mavs013)
#### Post date: [September 11, 2023, 1:16am UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/4 "2023-09-11T01:16:47Z")

</div>

I use this way.  
1，get line from wall layer of dwg file  
2，group lines by parallel and distance  
3，for each group using boundingbox to get max-point and min-point  
4，in newer version of dynamo using max-point and min-point create rectangle and surface by patch.  
5，use isoline node and filter method get the right location line for creating the wall  
6，input rest value like level,wall type to create the wall

if you’re interested you can check my YouTube channel,I’ve record a video doing in Revit2022 and older version dynamo.But in revit 2024 and newer version dynamo I use rectangle and surface to get center line rather than boundingbox.

---

<div class="post-metadata">

### Author: ![khaliboay](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@khaliboay](https://forum.dynamobim.com/u/khaliboay)
#### Post date: [September 15, 2023, 12:38pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/5 "2023-09-15T12:38:59Z")

</div>

Yes, could you kindly share your youtube video

---

<div class="post-metadata">

### Author: ![David125](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@David125](https://forum.dynamobim.com/u/David125)
#### Post date: [June 19, 2024, 3:41pm UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/6 "2024-06-19T15:41:09Z")

</div>

I too am interested in how you solved this problem, can you share your video?

---

<div class="post-metadata">

### Author: ![mavs013](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mavs013/32/155471_2.png) [@mavs013](https://forum.dynamobim.com/u/mavs013)
#### Post date: [June 20, 2024, 3:44am UTC](https://forum.dynamobim.com/t/creating-walls-from-cad-files/93637/7 "2024-06-20T03:44:46Z")

</div>

Here it is.

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/85d42069ff7e7162f9598512c281fe64f6d5ddb4.jpeg "Create wall from CAD file in Revit using dynamo") ](https://www.youtube.com/watch?v=5JGMfmCsXhc)
