# Room Boundary Lines - Work Plane

**URL:** <https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [October 20, 2017, 11:28am UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786 "2017-10-20T11:28:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Raja](https://forum.dynamobim.com/u/Raja)\
**Post date:** [October 20, 2017, 11:28am UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/1 "2017-10-20T11:28:22Z")

</div>

Is there a possibility to read the workplane or the host level of the Room Separation lines ? For instance when there are multiple levels very close to each other and the Room Separation lines are placed in the respective levels, its hard to find them in the floor plans when not looked in to the right Level.

Hoping there should be a way to do this

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

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 20, 2017, 11:50am UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/2 "2017-10-20T11:50:54Z")

</div>

See these maybe…

> [@Find Intersecting Planes for Reference Curves](https://forum.dynamobim.com/t/find-intersecting-planes-for-reference-curves/15603):
>
> Hi All, In response to another posting, I uploaded this workflow. I was advised by @Yna_Db that this category is a better place for this data to be for reference purposes. Noted. +1 I will upload here then post a link in topic replies in future. Hope this is of some help to others. wink

> [@Find levels within a given tolerance of analytical floor](https://forum.dynamobim.com/t/find-levels-within-a-given-tolerance-of-analytical-floor/14706):
>
> Hi! I’ve been trying to create a script comparing all analytical floors to existing levels, and from there find which floors are within a certain variable tolerance of each level. From there I want to adjust the analytical floor so that it aligns to the respective levels. I’ve managed to find the z-coordinate value (height) of the surfaces by dividing them into curves, and from there I compare it to the height of each level. I now need to figure out firstly how to set the tolerance so that on…

---

<div class="post-metadata">

**Author:** ![Raja](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Raja](https://forum.dynamobim.com/u/Raja)\
**Post date:** [December 10, 2017, 3:05pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/3 "2017-12-10T15:05:34Z")

</div>

Totally forgot about this problem. After digging few forums found that the every “Lines” category is drawn on Sketch Plane, so one could know the level of the “Room Separation” Lines using the “SketchPlane.Name” function.

```
roomLine = UnwrapElement(IN[0])
OUT = roomLine.SketchPlane.Name

```

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/c/0/c0b6886a2f404c7c0e3a0111680ad1a5e845ffa9.png)

---

<div class="post-metadata">

**Author:** ![Ning\_Zhou](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ning_zhou/32/68283_2.png) [@Ning\_Zhou](https://forum.dynamobim.com/u/Ning_Zhou)\
**Post date:** [December 11, 2018, 5:11pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/4 "2018-12-11T17:11:41Z")

</div>

can it be changed to another level? i tried w/ following but nothing happen  
import clr  
clr.AddReference(‘RevitAPI’)  
from Autodesk.Revit.DB import \*  
from System.Collections.Generic import \*  
clr.AddReference(“RevitServices”)  
import RevitServices  
from RevitServices.Persistence import DocumentManager  
from RevitServices.Transactions import TransactionManager

spaceLines = UnwrapElement(IN[0])  
TransactionManager.Instance.EnsureInTransaction(doc)  
try:  
for i in spaceLines:  
i.SketchPlane.Name = IN[1]  
except:  
pass  
TransactionManager.Instance.TransactionTaskDone()

OUT = spaceLines

---

<div class="post-metadata">

**Author:** ![Ning\_Zhou](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ning_zhou/32/68283_2.png) [@Ning\_Zhou](https://forum.dynamobim.com/u/Ning_Zhou)\
**Post date:** [December 11, 2018, 6:39pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/5 "2018-12-11T18:39:32Z")

</div>

i tried i.SketchPlane = IN[1] in which new sketch plane based on new level is used for input, not working  
i assume separator lines need to be recreated, isn’t it?

in fact, i did recreate separator lines but they are still old level based

---

<div class="post-metadata">

**Author:** ![Raja](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Raja](https://forum.dynamobim.com/u/Raja)\
**Post date:** [December 11, 2018, 7:33pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/6 "2018-12-11T19:33:48Z")

</div>

can you post the image of your graph?

---

<div class="post-metadata">

**Author:** ![Ning\_Zhou](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ning_zhou/32/68283_2.png) [@Ning\_Zhou](https://forum.dynamobim.com/u/Ning_Zhou)\
**Post date:** [December 12, 2018, 1:44pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/7 "2018-12-12T13:44:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Raja](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Raja](https://forum.dynamobim.com/u/Raja)\
**Post date:** [December 13, 2018, 8:55pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/8 "2018-12-13T20:55:14Z")

</div>

It’s hard to understand what you are trying to achieve. The **SketchPlane** and the name of it for the **ModelLine** and **RoomSeparation** Line could be done so:

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

if you want to change the plane of the lines you have to use [SetSketchPlaneAndCurve](http://www.revitapidocs.com/2018.1/99c03261-aeb7-032f-d71e-1e03716cbfb3.htm) method

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

---

<div class="post-metadata">

**Author:** ![Ning\_Zhou](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ning_zhou/32/68283_2.png) [@Ning\_Zhou](https://forum.dynamobim.com/u/Ning_Zhou)\
**Post date:** [December 13, 2018, 9:17pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/9 "2018-12-13T21:17:29Z")

</div>

thanks Raja, my problem is how to re-host room/space separation line from one level to another level?  
i can set new sketch-plane for room/space separation line but it won’t necessarily associate to new level even though that new sketch-plane is based on new level, perhaps i missed something simple here?

---

<div class="post-metadata">

**Author:** ![Ning\_Zhou](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ning_zhou/32/68283_2.png) [@Ning\_Zhou](https://forum.dynamobim.com/u/Ning_Zhou)\
**Post date:** [December 13, 2018, 9:39pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/10 "2018-12-13T21:39:07Z")

</div>

hi Raja, i tried your method but didn’t work, SetSketchPlaneAndCurve will throw exception

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11a95e8b30b6a644ce82a6ccfec90dc532e84fe3.png)  
doc = DocumentManager.Instance.CurrentDBDocument  
spaceLines = UnwrapElement(IN[0])  
TransactionManager.Instance.EnsureInTransaction(doc)  
x = “”  
try:  
for i in spaceLines:  
#i.SketchPlane = IN[1]  
i.SetSketchPlaneAndCurve(In[1], i.GeometryCurve)  
except:  
#pass  
x = “oops”  
TransactionManager.Instance.TransactionTaskDone()  
OUT = spaceLines, x

---

<div class="post-metadata">

**Author:** ![Raja](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@Raja](https://forum.dynamobim.com/u/Raja)\
**Post date:** [December 14, 2018, 2:46pm UTC](https://forum.dynamobim.com/t/room-boundary-lines-work-plane/15786/11 "2018-12-14T14:46:03Z")

</div>

Hi @Ning_Zhou,

As far as I know changing the SketchPlane of Room separation lines aren’t allowed.  
Alternatively you could create the Room separation lines to new level from existing/reference curves using Clockwork package. You can refer to this link

[http://dynamobim.org/forums/topic/clockwork-create-room-separtor/](http://dynamobim.org/forums/topic/clockwork-create-room-separtor/)
