Hi @keigonomura, another good question.
In theory you should be able to use the PO_ResetDisplayName
command, similar to what I suggested here but I just tested it and it looks like we don’t support nested attributes in the command. @mingbo, is this something that we can support? I used {Parent.DisplayName}_{DisplayName}
and it didn’t work as expected.
That said, this is very easy to do using a Python script. If you save the model as an HBJSON, you can use the code below to name the faces based on the parent name.
from honeybee.model import Model
fp = r'sample_model.hbjson'
model: Model = Model.from_hbjson(fp)
for room in model.rooms:
for face in room.faces:
face.display_name = f'{face.parent.display_name}_{face.display_name}'
model.to_hbjson(r'sample_model_renamed.hbjson')
sample_model.hbjson (78.6 KB)
sample_model_renamed.hbjson (53.9 KB)
We can also include this in an app to make it easier to do but I feel this is something that we should support directly inside Rhino. Let’s see what @mingbo thinks about this.