# Create walls from Cad link lines

**URL:** <https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396>\
**Category:** Revit\
**Created:** [August 30, 2018, 6:49pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396 "2018-08-30T18:49:09Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [November 22, 2018, 12:15pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/21 "2018-11-22T12:15:29Z")

</div>

Hi  
You can find Springs.Geometry.GroupBy Distance Node in Springs package.

---

<div class="post-metadata">

**Author:** ![luongdao007](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@luongdao007](https://forum.dynamobim.com/u/luongdao007)\
**Post date:** [November 22, 2018, 5:43pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/22 "2018-11-22T17:43:38Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![rioolsen](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@rioolsen](https://forum.dynamobim.com/u/rioolsen)\
**Post date:** [June 21, 2019, 9:37am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/23 "2019-06-21T09:37:16Z")

</div>

where can i find node: Line.GroupByParallel ? thanks.

---

<div class="post-metadata">

**Author:** ![rioolsen](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@rioolsen](https://forum.dynamobim.com/u/rioolsen)\
**Post date:** [June 28, 2019, 7:38am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/25 "2019-06-28T07:38:08Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![sps.25788](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sps.25788](https://forum.dynamobim.com/u/sps.25788)\
**Post date:** [August 19, 2019, 11:17am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/26 "2019-08-19T11:17:47Z")

</div>

Hi,

I have created as per your script, and got only 1 wall as result. see snaps attached.  
Please help.

![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/9/59d683d6ffd829383cd431c34626ba334aac4315.jpeg) ![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/d/5d4f20d43f9e3560ab277f2523fcdc9e0dd37484.jpeg) ![3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/d/8db490d2398a525709d562d030c00adf38832f43.jpeg)

---

<div class="post-metadata">

**Author:** ![victorqueiroz](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@victorqueiroz](https://forum.dynamobim.com/u/victorqueiroz)\
**Post date:** [October 24, 2019, 5:37pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/27 "2019-10-24T17:37:23Z")

</div>

Hello!  
Thanks for all comments above in advance. I have done that script but It only models one wall.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/784b94fa89772a3a6ecb8a652bcd291abb35e9b1.png)  
Just like this photo.

What might be wrong?

 ![Convert%20CAD%20lines%20to%20walls](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f766df72cdb5768628b3a5e11d901160eed346fd.png)

---

<div class="post-metadata">

**Author:** ![ae19891989](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ae19891989/32/84724_2.png) [@ae19891989](https://forum.dynamobim.com/u/ae19891989)\
**Post date:** [November 11, 2019, 7:54pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/28 "2019-11-11T19:54:27Z")

</div>

just set the lacing of the last node to longest 😉

---

<div class="post-metadata">

**Author:** ![ENG.SARIAH.NH](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@ENG.SARIAH.NH](https://forum.dynamobim.com/u/ENG.SARIAH.NH)\
**Post date:** [December 19, 2019, 7:26am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/29 "2019-12-19T07:26:50Z")

</div>

Could you help me how could I get this package “Wall by location line”, because some packages don’t exist 🙁?

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [December 19, 2019, 9:10am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/30 "2019-12-19T09:10:46Z")

</div>

This one? Wombat?

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

Hope that helps,

Mark

---

<div class="post-metadata">

**Author:** ![ENG.SARIAH.NH](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@ENG.SARIAH.NH](https://forum.dynamobim.com/u/ENG.SARIAH.NH)\
**Post date:** [December 19, 2019, 9:35am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/31 "2019-12-19T09:35:03Z")

</div>

yes 🙄

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [December 19, 2019, 9:38am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/32 "2019-12-19T09:38:36Z")

</div>

You don’t seem happy? 🙄  
Are you ok to use the the package manager?

---

<div class="post-metadata">

**Author:** ![ENG.SARIAH.NH](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@ENG.SARIAH.NH](https://forum.dynamobim.com/u/ENG.SARIAH.NH)\
**Post date:** [December 19, 2019, 10:31am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/33 "2019-12-19T10:31:39Z")

</div>

This’s the first time I use Dynamo in Revit, I’ve searched to this package and I don’t find it. 🙂

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

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [December 19, 2019, 10:36am UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/34 "2019-12-19T10:36:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/9/b94381a495e59f7b2bbaebe8229923bcff13a623.png)

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

I’d suggest having a read here…

[https://primer.dynamobim.org/](https://primer.dynamobim.org/)

Good luck 🙂  
Mark

---

<div class="post-metadata">

**Author:** ![jarod.tulanowski](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarod.tulanowski/32/83235_2.png) [@jarod.tulanowski](https://forum.dynamobim.com/u/jarod.tulanowski)\
**Post date:** [February 3, 2020, 9:46pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/35 "2020-02-03T21:46:04Z")

</div>

I was all excited about using this, and this works great as long as your walls are all the same thickness. has anyone made something that can choose generic walls by the distance between two parallel lines. my example has many different thicknesses.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6d840b13df1f1f9edd5a68c6d8a7a74fffc0eeda.jpeg)

---

<div class="post-metadata">

**Author:** ![jerrold.stevens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jerrold.stevens/32/93406_2.png) [@jerrold.stevens](https://forum.dynamobim.com/u/jerrold.stevens)\
**Post date:** [April 21, 2020, 6:29pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/36 "2020-04-21T18:29:16Z")

</div>

Hi Alban,

Just trying to assemble your script one step at a time and the Line.GroupbByParallel node really slows things down. Trying a moderate size CAD file with about 30 rooms and is taking hours to complete this step.Is there something I’m missing or is this really only feasible for small drawings with a few walls?

Jerrold

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [April 23, 2020, 9:36pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/37 "2020-04-23T21:36:47Z")

</div>

Hi Jerrold,

I added a custom node in python (Group Parallel Lines) to group the lines which should speed up the execution of the graph.

 ![Group Parallel Lines](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9c717fdf324bd6282510c6b85219bdeea94ff505.png)

On the other hand, I never had the ambition to deliver a complete solution in post 11 which would adapt to all cases. For complex projects, it is undoubtedly necessary to rework the graph.

Don’t hesitate to share your improvements on the forum. 🙂

---

<div class="post-metadata">

**Author:** ![jerrold.stevens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jerrold.stevens/32/93406_2.png) [@jerrold.stevens](https://forum.dynamobim.com/u/jerrold.stevens)\
**Post date:** [April 24, 2020, 1:54pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/38 "2020-04-24T13:54:19Z")

</div>

Thanks Alban, I didn’t intend to question your solution, only to understand if it was normal to see it take a long time to complete this step. I very much appreciate you sharing and wouldn’t want you to think I don’t.

Thank you for the updated suggestions!

Jerrold

---

<div class="post-metadata">

**Author:** ![mscottM6C4C](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mscottM6C4C](https://forum.dynamobim.com/u/mscottM6C4C)\
**Post date:** [August 10, 2020, 11:54pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/39 "2020-08-10T23:54:32Z")

</div>

![Curves_to_lines](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/bacf35709c4a23bb8a7934b9287bc3b0422107a9.png)

Does anyone understand why my CAD lines come up Null??

---

<div class="post-metadata">

**Author:** ![phil.sheridan](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@phil.sheridan](https://forum.dynamobim.com/u/phil.sheridan)\
**Post date:** [March 23, 2021, 4:50pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/40 "2021-03-23T16:50:07Z")

</div>

I get the same - anyone answered yet? There are lots of parallel lines btw

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [March 23, 2021, 4:53pm UTC](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396/41 "2021-03-23T16:53:23Z")

</div>

Its becuase they’re Proto (Dynamo) curves whereas Element.LocationCurve only works on ModelCurves (a type of Revit Element). If you are happy to output model curves into your Revit document, then set the createModelCurves input to true (by default its false) and then Element.LocationCurve or even just OOTB Element.Curve will suffice. But really, this doesn’t make much sense since the Element.LocationCurve returns what the BimorphNode is already outputting…Dynamo curves!?

[Previous page](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396.md?page=1)

[Next page](https://forum.dynamobim.com/t/create-walls-from-cad-link-lines/25396.md?page=3)
