Extracting room name through a parameter

Extracting room name through a parameter

suganeshazhagesan
Observer Observer
3,777 Views
15 Replies
Message 1 of 16

Extracting room name through a parameter

suganeshazhagesan
Observer
Observer

Hello Everyone

 

I am trying to model a face-based signage board that goes on doors or walls. It consists of a rectangular extrusion on which I have placed a 3d model text which will be controlled through an instance parameter. Coming to my doubt, I want that model text to change to the room name when placed on the door of that particular room. I tried using "Room Calculation Point" but I am not able to extract the room information from it, nor am I able to find any parameter which can achieve my intent. 

 

Kindly help me or suggest any other ways through which it can be achieved.

 

Thank you. 😁

0 Likes
Accepted solutions (1)
3,778 Views
15 Replies
Replies (15)
Message 2 of 16

ToanDN
Consultant
Consultant

You will need Dynamo to do this.

0 Likes
Message 3 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Can you tell how to go about it? the nodes to be used ? 

0 Likes
Message 4 of 16

Yien_Chao
Advisor
Advisor

can you share the Revit family?

0 Likes
Message 5 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Please find attached.

0 Likes
Message 6 of 16

Yien_Chao
Advisor
Advisor

i see.. i think the error is just the room calculation point. the one you shared is outside the room.

here another one with ajusted point.

 

2023-03-16_13-46-35.jpg

 

0 Likes
Message 7 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Thanks for the help but I think you didn't understand my problem.

 

I want the model text on the board to change automatically. It should change to the room name on which it is placed. eg. if i place the family on the door or wall of "Room-A" the text on the board should change to Room-A, if i place it on the door or wall of an another room say "Room-B" the text on the board should change to Room-B, it needs to be an instance parameter so that every time i place the board on different room the text should change to the name of that particular room. so i somehow want to extract the room name from the room tag using some means and apply it to the text on the signage board.

 

Thank you

0 Likes
Message 8 of 16

Yien_Chao
Advisor
Advisor

Ok i see.

You will need a Dynamo for that,  but i wouldn't work with you previous family because the room calculation point was outside room when placed on a door.

 

So try a dynamo with corrected family. If you need help, feel free to ask here.

0 Likes
Message 9 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Sure ! I do need help with it ! If you can kindly do !

 

Thank you.

0 Likes
Message 10 of 16

Yien_Chao
Advisor
Advisor

Well start something first in Dynamo.

Try to get the parameter's value by name you are looking for and set to another parameter.

0 Likes
Message 11 of 16

Yien_Chao
Advisor
Advisor
Accepted solution

ok, that was easy actually, but I didn't find how using only Dynamo.

 

here the simple Dynamo and a little bit of Python.

So the sign have the TEXT parameter with the room's number.

 

2023-03-18_23-07-18.jpg

0 Likes
Message 12 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

wow! Thanks for taking your time and helping. Honestly, I don't know python 😅 I can understand the dynamo part of using the nodes but not the python programming part. Anyways i will give it a try !

0 Likes
Message 13 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Also, how do I implement it? Do I have to just place the boards on all the rooms? or is there any method? 

Can you share your script? and how do I use the room name instead of the room number?

0 Likes
Message 14 of 16

Yien_Chao
Advisor
Advisor

hi

 

just change the .ROOM_NUMBER for .ROOM_NAME in the code.

all built in parameters is also listed here : https://www.revitapidocs.com/2022/fb011c91-be7e-f737-28c7-3f1e1917a0e0.htm

 

of course you would need to place your family on the right doors, then execute the script.

you have everything needed to make it work. I wont comment any further.

 

Best

Message 15 of 16

suganesh_matrix_a540
Enthusiast
Enthusiast

Thanks a lot !

0 Likes
Message 16 of 16

Yien_Chao
Advisor
Advisor

@suganesh_matrix_a540  please mark it as a solution if it's the case.

0 Likes