• Login
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

Grouping a selection of component instances

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 2 Posters 294 Views 2 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.
  • C Offline
    chrisglasier
    last edited by 3 Jan 2009, 07:15

    I want to group these component instances and the container, move it and then explode the group.NS baths.jpg I have ruby code for selecting and moving, but I cannot figure out the code for making the group and exploding it. I would really appreciate help.

    Thanks

    Chris

    With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jim
      last edited by 3 Jan 2009, 07:44

      Hi Chris,

      It's not documented, but try something like this:

      
      grp = entities.add_group(selection)
      
      

      Hi

      1 Reply Last reply Reply Quote 0
      • C Offline
        chrisglasier
        last edited by 3 Jan 2009, 07:51

        Works like a dream - many thanks! To explode I just need to identify the group like this?

        entities[entityNo].explode
        

        Chris

        With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

        1 Reply Last reply Reply Quote 0
        • C Offline
          chrisglasier
          last edited by 3 Jan 2009, 08:47

          Yes the explode works as well.

          Thanks

          Chris

          With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

          Advertisement