# Assign room numbers to equipments

**URL:** <https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [December 19, 2022, 6:55am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239 "2022-12-19T06:55:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [December 19, 2022, 6:55am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/1 "2022-12-19T06:55:19Z")

</div>

Hi all,

I am trying to find the equipment present in a room and assigning that room number to the elements within that room. I have linked my architectural model into mechanical model. But when I try to get linked elements into dynamo they are not in correct place where I can see them in correct position in revit. So kindly let me know how do I transform or convert the linked model to the correct position to get room numbers.

Here is the instance showing the wrong location imported in dynamo.

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

Following is the working script.

 ![Assign Room names to equipments_2022-12-19_12-24-37](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/c/7c0507a4a2a18590ed398aaf6cd1ba556245a546.png)

Kindly let me know where I am missing or what should I do to go ahead ?

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [December 19, 2022, 8:04am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/2 "2022-12-19T08:04:50Z")

</div>

Did you have a look here?

> [@Apply parameters from linked model rooms to elements in room](https://forum.dynamobim.com/t/apply-parameters-from-linked-model-rooms-to-elements-in-room/27997/3):
>
> See if this helps…

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [December 19, 2022, 11:27am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/3 "2022-12-19T11:27:37Z")

</div>

I got it my self using the node called “Linkelement.ofcategory” from bimorphNodes which will give me transfomed located elements with respect to current project.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/1/c11411b70b9db8625f73f5828765c59420bbfe3f.png)

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [December 19, 2022, 6:49pm UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/4 "2022-12-19T18:49:06Z")

</div>

Thanks @bvs1982. I have taken a look at the post.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [December 20, 2022, 4:55am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/5 "2022-12-20T04:55:31Z")

</div>

To add some context to what is going on specifically, link instance all contain a transform which you can access to orient geometry from linked objects to the native coordinate system in the active model.

Below is an example I did just a few minutes ago to take a linked floor, get its points and orientate them to a local model to make a topo in the same position from them.

 ![get link transform](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f70d88a71d0dc78ab0e82ef405eb227657d9a009.png)

The code I use in Crumple to get the transform is below:

```auto
# Made by Gavin Crump
# Free for use
# BIM Guru, www.bimguru.com.au

# Boilerplate text
import clr

clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import RevitLinkInstance

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

# Get link transform
link_instance = UnwrapElement(IN[0])
link_transform = link_instance.GetTotalTransform().ToCoordinateSystem(True)

# Preparing output to Dynamo
OUT = link_transform

```

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [December 21, 2022, 5:24am UTC](https://forum.dynamobim.com/t/assign-room-numbers-to-equipments/84239/6 "2022-12-21T05:24:08Z")

</div>

Thanks @GavinNicholls I appreciate that. This is also working for me. Thanks alot for your time.
