Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Extracting room name through a parameter

15 ANTWORTEN 15
GELÖST
Antworten
Nachricht 1 von 16
suganeshazhagesan
1890 Aufrufe, 15 Antworten

Extracting room name through a parameter

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. :strahlendes_Gesicht_mit_lächelnden_Augen:

Tags (1)
Beschriftungen (1)
15 ANTWORTEN 15
Nachricht 2 von 16
ToanDN
als Antwort auf: suganeshazhagesan

You will need Dynamo to do this.

Nachricht 3 von 16
suganesh_matrix_a540
als Antwort auf: ToanDN

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

Nachricht 4 von 16
Yien_Chao
als Antwort auf: suganeshazhagesan

can you share the Revit family?

Nachricht 5 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

Please find attached.

Nachricht 6 von 16
Yien_Chao
als Antwort auf: suganeshazhagesan

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

 

Nachricht 7 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

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

Nachricht 8 von 16
Yien_Chao
als Antwort auf: suganeshazhagesan

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.

Nachricht 9 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

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

 

Thank you.

Nachricht 10 von 16
Yien_Chao
als Antwort auf: suganesh_matrix_a540

Well start something first in Dynamo.

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

Nachricht 11 von 16
Yien_Chao
als Antwort auf: suganesh_matrix_a540

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

Nachricht 12 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

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

Nachricht 13 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

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?

Nachricht 14 von 16
Yien_Chao
als Antwort auf: suganesh_matrix_a540

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

Nachricht 15 von 16
suganesh_matrix_a540
als Antwort auf: Yien_Chao

Thanks a lot !

Nachricht 16 von 16
Yien_Chao
als Antwort auf: suganeshazhagesan

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report