Problem with Group name in SU 7.1
-
I don't know if this was in previous versions of SU, but now I discovered it.
If I make a group and rename it by right-click in Outliner -> Rename, or I add a name in Entity Info, the group entity doesn't get the new name. If you check group's name in ruby console, you will see that the group still have "Group#1" name, unless the new name is added by ruby code. Is this normal? -
Works fine for me in v7.1 either Rename off Outliner's context-menu or rename in Entity Info both OK.
-
@tig said:
Works fine for me in v7.1 either Rename off Outliner's context-menu or rename in Entity Info both OK.
Did you checked the name with ruby?
-
Renamed with Entity Info and Outliner - checked with the ruby console afterwards - worked fine.
-
Hmm, groups are very tricky in SU, as I can see... I made a group in SketchUp and used this in console:
defs = model.definitions defs[0].name
it reported me "
Group#1
". Then I renamed the group and got same result. I tried to rename the definitiondefs[0].name = 'test'
; now, the definition name was changed, but group instance not.
I made another test with a component. In this case, renaming the definition, renamed the instance and when I asked the name, I got the right answer.In the end I played with the group entity
ents = model.entities ents[0].name #reported me the correct name of the group ents[0].name = 'test_group' #changed properly the group entity name
I really don't understant what is that definition for group entity if it doesn't influence the entity itself. Ok, I know... groups are unique, more or less... more copies of same group are treated as instances until one is opened or edited inside. Just... weird
---EDIT---
- If I have a group with given name and I use right-click -> Make Component, the component definition will have group's definition name, not the name I gived to that group entity.
-
definition.name
is not the same asinstance.name
orgroup.name
As you see when you select a ComponentInstance, in the Entity Info you see
Name:
andDefinition Name:
Same goes for the group, when you edit the Name: in the Entity Info you edit theComponentInstance.name
orGroup.name
- not the definition's name.
Advertisement