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

    Move entities to a group?

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 4 Posters 406 Views 4 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.
    • thomthomT Offline
      thomthom
      last edited by

      Just noticed this warning in regards to .add_group http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#add_group

      @unknownuser said:

      NOTE: calling add_group with entities in its parameters has been known to crash SketchUp. It is preferable to create an empty group and then add things to its Entities collection.

      How would I move existing entities to an group? Seeing how it's recommended that you don't call it with entities argument.

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

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        Personally, I've not seen that crash happen, but that doesn't mean it can't happen. The problems I've noticed come when trying to create a nested group when not in the same nesting level. Perhaps that is what was meant by the warning.

        RickW
        [www.smustard.com](http://www.smustard.com)

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

          Is there a method to copy or duplicate entities?

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

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            You could add it all to a group, then copy the group, then explode both groups. Feels like a bit of a workaround though.

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

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

              But that's the problem. I want to add it to a group. But I experience crashes. Like the manual says. So how do you add entities to a group after you make an empty group?

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

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                Hmm, I spent a bit of time working on a method that would take a selection and make an array of all its points and lines and then go create those inside the group. Turns out it was rather crazy. The faces would get all mangled because of making them with vertices in the wrong order and stuff. So I guess that's not an option.

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

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

                  @thomthom said:

                  But that's the problem. I want to add it to a group. But I experience crashes. Like the manual says. So how do you add entities to a group after you make an empty group?

                  See here... http://www.sketchucation.com/forums/scf/viewtopic.php?p=140959#p140959

                  TIG

                  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