Apply Room Name & Number from linked model to Furniture

thank you so much @e1uvs :wink:

Iā€™m getting a null value in Room.FinishBoundary but it still works

Iā€™m getting wrong room numbers. And there are cases wherein there are more than 1 room in a roomā€¦

I am sorry for the late reply. Been swamped at work. I will be writing back to you to help out very soon.

Hello there. @e1uvs
Did you get it to work?
I copied the rooms from the link to the working file, using Michael Kilkellys script. I am using a little more simplified script to add the parameter(will be added below). With it I just add a ā€œRoom Nameā€ project parameter as text and try to apply the script to it. I need it for el fixtures but I tried it with furniture as well, tried also running it in the architect model file but whatever I try I get this errorā€¦ (curve joined produced more than one wire in PolyCurveā€¦

Oh and on top of it all, I get a successful run only for 2 items. I donā€™t see a difference between those 2 items and all the rest.
Iā€™m sure itā€™s a small mistake in my code but I canā€™t figure it out, Iā€™m still quite new to visual coding.
Could someone assist me?


Room names On Elements 27.08.2019.dyn (40.1 KB)

Update:

Found this article

Works like a charm (with little adjustments ofc)

1 Like

That is pretty much how I got it to work.

1 Like

Thanks for this