sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Group -> Make Component Discards Group Name

    Scheduled Pinned Locked Moved SketchUp Bug Reporting
    sketchup
    3 Posts 3 Posters 465 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.
    • J Offline
      Jim
      last edited by

      It is very annoying when you use Make Component on a Group, that SU discards the Group name and uses some generic Group#1 as the Component name.

      Hi

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

        A definition has a name, an instance has a separate potentially unconnected name.
        Thus a component can be represented by two names - the minimum is the definition name.
        A group is just a special kind of component and its definition always has the incrementing name 'Group#1' etc, its instance [which should be the only one as groups are meant to be unique] can have separate name - just like a 'normal' instance - by default it's blank, ''. The Outliner shows its actual name OR if '' as 'Group' by default - when it could show Box=Group#1, =Group#2 etc, something like it does for a Component xxx<yyy>.
        When you change a group into a component it uses the group's definition name and not its instance name - potentially you can have several groups with instances of the same name [they are all '' by default anyway!] if it did take the instance name to use for the name of the component definition you could get #99 quite easily.

        It's not so much a bug BUT something that could be 'fixed'...

        At the moment all it does is shift the type of definition from 'group' to 'component' - keeping the name as it was - i.e. the 'definition name'...
        If you name a group [i.e. the instance] the definition name could change to match it.
        That way making it into a component can use the displayed group name, perhaps with a #nn suffix if the name is duplicated. An unnamed group simply gets a 'Component#nn' name like when you make a component manually.
        The group.make_component() method could be rewritten to do the naming of the new definition from the group.name - e.g. 'Box' or use 'Component#1' otherwise if name=='' [this will auto-increment]. Because a new component doesn't get a 'named instance' logically the new instance of the component that's just been made from the group should also be 'unnamed' and only its definition named...

        TIG

        1 Reply Last reply Reply Quote 0
        • mitcorbM Offline
          mitcorb
          last edited by

          @TIG:
          This is an interesting revelation for me. I was always thinking that a group was the first step to a component, not the other way around. But what you say makes sense. Things are not always what they appear to be 😄

          I take the slow, deliberate approach in my aimless wandering.

          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