# RoomSeparator.FromCurve

**URL:** https://forum.dynamobim.com/t/roomseparator-fromcurve/92580
**Category:** Revit
**Tags:** clockwork, dynamo
**Created:** [August 4, 2023, 11:31am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580 "2023-08-04T11:31:05Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 4, 2023, 11:31am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/1 "2023-08-04T11:31:05Z")

</div>

I am trying to create room separator from model lines, I put a graph together like below, then received warning, Anyone has an idea?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/5867fd0d58933bf4f11890a3c2a569dbb6753686.jpeg)

---

<div class="post-metadata">

### Author: ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)
#### Post date: [August 4, 2023, 11:45am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/2 "2023-08-04T11:45:12Z")

</div>

Hello, Hello, to dig on this side maybe

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/6/36918a08a53f804d66ec82cdc775b7c664f79d8a.png)  
cordially  
christian.stan

---

<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: [August 4, 2023, 12:02pm UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/3 "2023-08-04T12:02:34Z")

</div>

Play with List levels and Flattened Lists, or try it one Level at the time.  
Taking into account having only the Lines that belong on that Level.  
Then complicate it

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [August 4, 2023, 12:44pm UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/4 "2023-08-04T12:44:30Z")

</div>

I’m guessing that your lines must be on the sketch plane.

There is 100% certainty that the line element N doesn’t lay on the same plane as level N.

---

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 7, 2023, 2:13am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/5 "2023-08-07T02:13:57Z")

</div>

I tried one floor with lines on it, but still doesnt work 🙃

---

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 7, 2023, 2:14am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/6 "2023-08-07T02:14:45Z")

</div>

Have to also consider curved lines, so this wouldnt work

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [August 7, 2023, 5:57am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/7 "2023-08-07T05:57:24Z")

</div>

What does the warning say?

---

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 7, 2023, 6:13am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/8 "2023-08-07T06:13:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/1/81755a993a6f36a68fd0645591a6ccd43892ccb2.png)  
Here is screenshot for Error, It doesnt really pin point the problem，thanks for your help

---

<div class="post-metadata">

### Author: ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)
#### Post date: [August 7, 2023, 6:23am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/9 "2023-08-07T06:23:07Z")

</div>

Hi @bonnie_zhang these element lines need to be curve, so try element curve and probably needs to be grouped for loops try archilabs groupe curves

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [August 7, 2023, 6:47am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/10 "2023-08-07T06:47:53Z")

</div>

Add an `Element.Geometry` node after the `All Elements Of Category` node so that you have geometry instead of Revit lines.

---

<div class="post-metadata">

### Author: ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)
#### Post date: [August 7, 2023, 6:51am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/11 "2023-08-07T06:51:29Z")

</div>

yes 😉 and play around with some list level lacing in that case, with many views and levels

---

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 7, 2023, 7:59am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/12 "2023-08-07T07:59:54Z")

</div>

Thanks Jacob, this kinds of solved the warning, but it did not get succeed to generate room separation line, it returns as null. Any other ideas? I tried flattening the list, but seems no help

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

---

<div class="post-metadata">

### Author: ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)
#### Post date: [August 7, 2023, 8:58am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/13 "2023-08-07T08:58:30Z")

</div>

Check if the lines are really located on the same height/Z as the plane. Otherwise the node will bug out. I should really make that node a little easier and safer…  
Also, if you are passing a single view, don’t pass it in a list, but rather as a singleton. Same goes for the sketch plane. And passing 1 view means also passing just 1 sketch plane.

---

<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: [August 7, 2023, 9:36am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/14 "2023-08-07T09:36:43Z")

</div>

i think there is a node called FirstItem that wil create the singleton.

> [@The result of Roomseparator.FromCurve is null](https://forum.dynamobim.com/t/the-result-of-roomseparator-fromcurve-is-null/87087/5):
>
> Your view input has a list with a single item. Try passing a singleton instead (FirstItem node). The same may apply to your sketchplane input.

---

<div class="post-metadata">

### Author: ![bonnie\_zhang](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bonnie\_zhang](https://forum.dynamobim.com/u/bonnie_zhang)
#### Post date: [August 7, 2023, 9:47am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/15 "2023-08-07T09:47:12Z")

</div>

Hi Andreas, It is located on same height, but not working 🙃, So sad, any chance you like to create another easy node to use?

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [August 7, 2023, 10:46am UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/16 "2023-08-07T10:46:26Z")

</div>

I can confirm the node works fine as is; you just have to modify your collection.

As a start, filter out any lines which aren’t on the sketch plane. Also, pull that sketch plane from the view itself instead of all the levels.

If you aren’t sure how, post your dataset and someone in the community will likely have a look.

---

<div class="post-metadata">

### Author: ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)
#### Post date: [August 7, 2023, 12:59pm UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/17 "2023-08-07T12:59:40Z")

</div>

hello, here is an example with arcs creating rooms when there are no walls.

 ![Forum english 07 aout 2023_2023-08-07_02-53-02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/b/3b55a243508cc4d03963e877ba466bfec2552b7a.png)

There is a process of elimination (not necessarily very optimized) concentrate on the request of the node.  
edit:  
I forgot to mount the starting point

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

cordially  
christian.stan

---

<div class="post-metadata">

### Author: ![Tabeer.Tariq](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tabeer.Tariq](https://forum.dynamobim.com/u/Tabeer.Tariq)
#### Post date: [July 26, 2024, 1:40pm UTC](https://forum.dynamobim.com/t/roomseparator-fromcurve/92580/18 "2024-07-26T13:40:26Z")

</div>

Hello Christian, your script creates a solid extrusion in the rooms place as well. Currently I am seeing a solid extrusion and room both. Is there a way to remove it?
