• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Problem with Group name in SU 7.1

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 3 Posters 328 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 18 Oct 2009, 16:13

    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
    • T Offline
      TIG Moderator
      last edited by 19 Oct 2009, 16:37

      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 19 Oct 2009, 16:46

        @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
        • T Offline
          thomthom
          last edited by 19 Oct 2009, 16:56

          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 19 Oct 2009, 18:08

            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
            • T Offline
              thomthom
              last edited by 19 Oct 2009, 20:33

              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
              1 / 1
              • First post
                1/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement