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

    Import A Cut List

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    20 Posts 4 Posters 633 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.
    • V Offline
      Vigy
      last edited by

      Well Dave, I do most of my models from scratch, and I make them to dynamic components as well, but I have some old Cut Rite programs with lots of parts and would like to review them in SU.

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

        Understood.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • S Offline
          slbaumgartner
          last edited by

          @vigy said:

          Steve, thanks for your response!

          My priority is to have simple rectangular boards, but I never wrote anything in Ruby so it's not that simple for me. and yes it would be nice to have them separated (I didn't want to complicate things)

          Victor

          I'll take a shot at it when I get a chance. Do you have a sample file you could upload?

          Steve

          1 Reply Last reply Reply Quote 0
          • V Offline
            Vigy
            last edited by

            Hi Steve,

            Attached a sample.

            Thanks so much, Victor


            Import A Cut List.zip

            1 Reply Last reply Reply Quote 0
            • S Offline
              slbaumgartner
              last edited by

              @vigy said:

              Hi Steve,

              Attached a sample.

              Thanks so much, Victor

              Hi Victor,

              Give the attached a try and let me know what happens. Put the rb file into your Plugins folder. It should add an item named "Import Cut List" to the Plugins menu in SketchUp.

              This is written to import a csv, not an xlsx, so you will need to save your cut list that way first. xlxs is just way messier than csv, so I took the easy way.

              This creates Components, not Groups, and spaces ComponentInstances out along the green (y) axis. I found that piling them all at the origin was hopelessly messy!

              This ignores the material field (because there is not enough info to create a material). It also generates only quantity 1 of each part, though that could be changed fairly easily. All your examples were on Layer0, so I didn't co anything to create layers or place things on them. That also could be changed easily enough.

              Steve


              importcutlist.rb

              1 Reply Last reply Reply Quote 0
              • V Offline
                Vigy
                last edited by

                OOOH WOW! This is wonderful Steve, and it work great. Thanks a million! 😍
                As you mention, material not needed but layers would be nice if I'm allowed to have audacity to do so. 😳 😳

                1 Reply Last reply Reply Quote 0
                • S Offline
                  slbaumgartner
                  last edited by

                  @vigy said:

                  OOOH WOW! This is wonderful Steve, and it work great. Thanks a million! 😍
                  As you mention, material not needed but layers would be nice if I'm allowed to have audacity to do so. 😳 😳

                  Try this one! It should handle layers (I hope πŸ˜‰ )

                  Another word of warning: For simplicity, I didn't process the header line to find out what is in which column, so if you rearrange things this plugin will fail in strange ways!

                  Steve


                  importcutlist.rb

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    Well, you wouldn't need to import anything into the model. The imported components could populate the Components dialog for manual placement after the import.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      slbaumgartner
                      last edited by

                      @jim said:

                      Well, you wouldn't need to import anything into the model. The imported components could populate the Components dialog for manual placement after the import.

                      True! That would handle cases with quantity greater than one too - just pull out however many you need (you can do that with my version too, since the components are there). I just followed the workflow Vigy requested.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        Vigy
                        last edited by

                        Steve, It all work very well πŸ‘
                        Thanks Again!

                        Victor

                        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