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

    [looking] components to groups after DWG import

    Scheduled Pinned Locked Moved Plugins
    17 Posts 6 Posters 2.2k Views 6 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.
    • jujuJ Offline
      juju
      last edited by

      It looks like Didier is pumping out some extensions...

      Save the Earth, it's the only planet with chocolate.

      1 Reply Last reply Reply Quote 0
      • pbacotP Offline
        pbacot
        last edited by

        Thank Didier. Look forward to seeing that!

        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

        1 Reply Last reply Reply Quote 0
        • pbacotP Offline
          pbacot
          last edited by

          @cadfather said:

          try this (it's only the comps conversion part)

          @m = Sketchup.active_model    ;   @s = @m.selection   ;   @e = @m.entities
          > 	@m.start_operation('COMPS TO GROUPS', true)
          >         if @s.empty?
          >         UI.messagebox('No Component selected.')
          >         else
          > 				sel = []
          > 			@s.to_a.each{|obj| 
          > 				next unless obj.is_a?(Sketchup;;ComponentInstance)
          >                  g = nil
          > 				 g = @e.add_group obj
          > 				 g.name = obj.definition.name
          > 				 sel << g
          > 				 obj.explode  }
          > 			 @s.add sel
          >         end
          >     @m.commit_operation
          

          This works really well for selected components but the nested components remain. The crux is that I create CAD files with many groups, and while they act as groups (not components) in CAD they become components in SketchUp (with inexplicable names) and fill up the library. they are generally nested. So the extra work involved is actually dealing with the nested components.

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          1 Reply Last reply Reply Quote 0
          • jujuJ Offline
            juju
            last edited by

            @didier bur said:

            @pbacot,
            Hi,
            In a few days you can also download my latest tool "Purge Tool" on the EW 😉
            [attachment=1:lj75knum]<!-- ia1 -->purgetool_icon 60x60.png<!-- ia1 -->[/attachment:lj75knum]

            It's a cleanup utility that mimics the Autocad Purge command.

            [attachment=0:lj75knum]<!-- ia0 -->Main dialog.jpg<!-- ia0 -->[/attachment:lj75knum]
            [attachment=3:lj75knum]<!-- ia3 -->purge component.jpg<!-- ia3 -->[/attachment:lj75knum]
            [attachment=2:lj75knum]<!-- ia2 -->report.jpg<!-- ia2 -->[/attachment:lj75knum]

            Aaaah, on EW finally, except I can't download it for the some or other strange reason.

            Save the Earth, it's the only planet with chocolate.

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

              @juju said:

              Aaaah, on EW finally, except I can't download it for the some or other strange reason.

              Why not? What happens when you try?

              I installed just now and it worked fine although it indicates it hasn't been signed. That won't prevent it from working unless permissions are set to disallow unsigned extensions.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • jujuJ Offline
                juju
                last edited by

                @dave r said:

                Why not? What happens when you try?

                You hit Download and the little wheel comes out with Please Wait but nothing happens.

                Tried this now again and was able to download, thanks.

                Save the Earth, it's the only planet with chocolate.

                1 Reply Last reply Reply Quote 0
                • jujuJ Offline
                  juju
                  last edited by

                  For those of you that have installed Purge Tool and may not be sure where it is launched from, it can be found under the Tools menu.

                  Save the Earth, it's the only planet with chocolate.

                  1 Reply Last reply Reply Quote 0
                  • OxerO Offline
                    Oxer
                    last edited by

                    There is a plugin to convert components to groups, here is Make_Components

                    "The result is the end what is important is the process" by Oxer
                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                    1 Reply Last reply Reply Quote 0
                    • pbacotP Offline
                      pbacot
                      last edited by

                      @oxer said:

                      There is a plugin to convert components to groups, here is Make_Components

                      Thanks, I'll try it!

                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                      1 Reply Last reply Reply Quote 0
                      • pbacotP Offline
                        pbacot
                        last edited by

                        So far nothing quite does what I need. I need this to work on all all selected components, nested as well.

                        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                        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