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

    [Plugin] 2.5D CAM Plugin 20121202

    Scheduled Pinned Locked Moved Plugins
    80 Posts 32 Posters 91.3k Views 32 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.
    • Dave RD Offline
      Dave R
      last edited by

      I'll try deleting the TXT file and retry.

      TIG, I did have the group selected before starting the plugin. I even made sure to make it a group even though I don't like to use groups. πŸ˜‰

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

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

        Edit the .rb file with a plain-text editor like Notepad...
        The line reads
        if Sketchup.active_model.selection[0].typename != "Group"
        Change it to read
        unless selection[0] && selection[0].is_a?(Sketchup::Group)
        This will at least get over that hurdle... πŸ˜•

        TIG

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

          I deleted the TXT file and tried running it. It worked! The script did give me the save box and I was able to save the file. Unfortunately it left the path layer as active when it completed.

          I'll edit the rb file with your additions, TIG.

          Another request: Could you set it to save to the same location as the SKP file? You could actually automate the save process giving the file the same name as the SKP file.

          gcode.png

          Edit to add:

          I closed the SKP file without saving it and edited the text per TIG's instruction. Then re-tried it. It worked but I got the following in the console. Note the error message at the end.

          C:/Program Files/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt

          2

          #Sketchup::Face:0xaae9034

          2

          #Sketchup::Face:0xaac57d8

          2

          #Sketchup::Face:0xaaa1f04

          2

          #Sketchup::Face:0xaa7c4ac

          2

          #Sketchup::Face:0xaa69a8c

          #Sketchup::Face:0xaa68204

          Error: #<TypeError: can't convert nil into String>
          C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:in initialize' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:in new'
          C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:879:in gcode_write' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:275:in mode'
          C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:72:in activate' C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912:in select_tool'
          C:/Program Files/Google/Google SketchUp 8/Plugins/CNC-profile_v03.rb:912

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • T Offline
            timj
            last edited by

            I'm having similar issues. OS X, sketchup 8

            Everything is installed correctly, 3D model made to be a group. No save window or new layer appear. Here is the dialog box output:

            /Users/timjerome/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC_Files/CNC_Profile_Defaults.txt
            Error: #<Errno::ENOENT: No such file or directory - /Users/timjerome/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC_Files/CNC_Profile_Defaults.txt>
            /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:118:in initialize' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:118:in new'
            /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:118:in inputs' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:71:in activate'
            /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:914:in `select_tool'
            /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CNC-profile.rb:914

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

              Did you install Offset.rb?

              Make sure the Plugins folder has read and write permissions enabled.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • T Offline
                timj
                last edited by

                Yes offset.rb is installed within my plugins folder (I've also checked the read and write permissions). I've tried reinstalling the plugins and am still getting the same errors. I'm not sure what else to try?

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

                  @timj
                  Your error says:
                  **/Users/timjerome/Library/Application Support/Google SketchUp 8/SketchUp/Plugins**/CNC_Files/CNC_Profile_Defaults.txt
                  So some code is expecting the tool's subfolder and thereby the txt file to be in that Plugins folder structure.
                  BUT that is NOT the right MAC 'plugins' folder - do NOT install into the 'User' one, rather use the one in the HD tree - ensuring you have full read+write permissions to this folder:
                  Macintosh HD/Library/Application Support/Google Sketchup 8/Sketchup/plugins

                  Another potential issue is that if your MAC has a case-sensitive system some files can NOT be 'found' - so for example if a folder is named 'plugins' and a script assumes it's called 'Plugins' it will be found OK on a PC or most MACs, but on a case-sensitive MAC system it will fail... This is unlikely, but if all else fails...

                  TIG

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

                    Good call, TIG. I missed that "Users" detail.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

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

                      I uploaded V05 in the first post. This version's major change is that I incorporated TIG'S Smart Offset plugin. So now you don't have to have inside fillets on your part larger than half the mill diameter. See image below. The fillet radius is .100 and I'm cutting it with a .25 diameter cutter (.125 radius). It creates a nice sharp corner, like it should.

                      Capture.JPG

                      I also added the ability to have stock left after machining to either the inside or outside cuts.

                      Enjoy!

                      jgro11

                      1 Reply Last reply Reply Quote 0
                      • icoffI Offline
                        icoff
                        last edited by

                        Nice job! I'm sorry but I don't know very well english to follow all your explanation... 😞 but I'm very interesting in this plugin because I want to buy a CNC mill in the next week....
                        So i ask you humbly if you can explain me how make work this plugin.
                        I download the V5,0 and I try use it, but there are something wrong in my program because don't work.
                        Some simply questions:
                        It's necessary to have other plugin installed and which?
                        I use in SU centimeter as measure unit; in the first window that is open (where I can enter the parameter of the milling...) what kind of measure unit do you use?
                        In the ruby consol I see an error that you can see in the image below.
                        Cattura.JPG

                        Ok, after this post I go in my control panel and change the level in "Beginner"..... πŸ˜„

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

                          Can you post the Sketchup model? I'll take a look at it and see if I can figure out what's happening. Also, can you give me what settings you are using?

                          jgro11

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

                            @icoff said:

                            I download the V5,0 and I try use it, but there are something wrong in my program because don't work.
                            Some simply questions:
                            It's necessary to have other plugin installed and which?
                            The only plugin you should need is TIG's Smart offset. It was included in the zip file with V05. Double check that TIG-Smart_offset.rb is in your plugin folder.

                            @icoff said:

                            I use in SU centimeter as measure unit; in the first window that is open (where I can enter the parameter of the milling...) what kind of measure unit do you use?
                            You set your units in Sketchup in "Window", "Model Info". The plugin should be able to handle metric units.
                            [/quote]

                            1 Reply Last reply Reply Quote 0
                            • icoffI Offline
                              icoff
                              last edited by

                              Yhank you for the reply.
                              The TIG's Smart offset plugin is on my folder of plugin...
                              I send you a picture of my setting of the model (I try also with millimeter but without results...) and the SU file (a simply form....)


                              Senza titolo.skp


                              impostazioni.JPG

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

                                this is my error. help

                                C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
                                Error: #<Errno::ENOENT: No such file or directory - C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt>
                                C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:124:in initialize' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:124:in new'
                                C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:124:in inputs' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:76:in activate'
                                C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:902:in `select_tool'
                                C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:902

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

                                  CNC_Profile_Defaults.txt is a file the plugin writes in the Plugins folder and apparently it couldn't. Most likely a permissions problem with the Plugins folder. Make sure you have full read and write permissions established.

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

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

                                    I have all read and write premissions on. this is the new error I get. I cant get a tool path of the part.

                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC_Files/CNC_Profile_Defaults.txt
                                    nil
                                    2
                                    nil
                                    nil
                                    nil
                                    #Sketchup::Face:0xa8a9378
                                    nil
                                    nil
                                    Error: #<TypeError: can't convert nil into String>
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:869:in initialize' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:869:in new'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:869:in gcode_write' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:230:in mode'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:79:in activate' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:902:in select_tool'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/CNC-profile.rb:902

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

                                      Post screenshots of your Plugins folder and the folder called CNC_Files.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        Eljustino
                                        last edited by

                                        I have the same error.

                                        please help...

                                        I am using sketchup 8 on Mac OSx

                                        ( i also have read and write permission on )


                                        error

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bryon
                                          last edited by

                                          I like your script a lot. I have noticed though, that sometimes the tool paths need a little tweaking. How hard would it be to implement a way to adjust the generated paths and re-run the gcode generation?

                                          Thanks for your hard work!

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            motis
                                            last edited by

                                            Hi,

                                            Am new to CNC and SketchUcation. I have been trying to find plug ins that will help. This looks great. I found it in the store and did an auto install. It seemed to go thru the motions. Nothing shows up in the "Pluggins". I tried downloading the zip file and doing an install from Window -> Preferences -> Extensions -> Install Extensions. It shows an .rb file and the install is looking for a .rbz. Thanks in advance for your help.

                                            Best Regards

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

                                            Advertisement