sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Problem with Group name in SU 7.1

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 373 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      NewOne
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Works fine for me in v7.1 either Rename off Outliner's context-menu or rename in Entity Info both OK. ❓

        TIG

        1 Reply Last reply Reply Quote 0
        • N Offline
          NewOne
          last edited by

          @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?

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            Renamed with Entity Info and Outliner - checked with the ruby console afterwards - worked fine.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • N Offline
              NewOne
              last edited by

              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 definition defs[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.
              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                definition.name is not the same as instance.name or group.name

                As you see when you select a ComponentInstance, in the Entity Info you see Name: and Definition Name:
                Same goes for the group, when you edit the Name: in the Entity Info you edit the ComponentInstance.name or Group.name - not the definition's name.

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement