• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Trouble modeling a cabinet door

Scheduled Pinned Locked Moved Woodworking
29 Posts 8 Posters 5.8k Views
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.
  • G Offline
    Garry K
    last edited by 3 Apr 2013, 16:25

    I've been working on a simple cabinet making software for european cabinets CabMaker32.
    It is an external C++ program that allows the user to store cabinets, material types and rules. You can then call sketchup, design cad, cutlist plus or pattern systems.

    With sketchup a complete set of kitchen cabinets renders via ruby code.

    This is suppose to work with free version of sketchup

    I am now working on more door styles. I have everything working except the mirror, glass.
    Where I am stuck is with the followme ruby code. It works great when I have a panel (face), but I'm not sure what to do when I just have a path ( no face ). What I am trying to do is essentially create a frame that represents the bead with a line path.

    The 2 doors that show glass and mirror are partially done in code and then hand tweaked.
    All the other doors are done in ruby code. Cathedral doors can be 250 mm and wider (with 50 mm stiles)

    How can I use followme in code with the panel shape but end up without the original face.

    225, 250, 275, 300, 400 and 500 cathedral doors

    Cathedral panel raised dooor - showing a bit of profile

    300 x 600 doors

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dave R
      last edited by 3 Apr 2013, 17:28

      That looks pretty cool for the kitchen cabinet guys. Will it work with user selected units in SketchUp?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • G Offline
        Garry K
        last edited by 3 Apr 2013, 18:23

        So far just mm - but that isn't hard to modify.

        The calling function is this:

        do_make_door( cab, lyr, pnl, pt_1, pt_2, pivot, number, arch, stile, pth, rotate )

        Args:

        1. To maintain proper naming I number each cabinet (cab)
        2. lyr is which layer you want it to be on. The current layer only changes if it is already setup
        3. pnl is panel type: Door, Drawer, Glass or Mirror
        4. pt_1 is the lower left hand corner of the component ( in mm )
        5. pt_2 contains width, thickness and height ( in mm )
        6. pivot can be [0,0,0] it is useful for the cabinet drawing part of the software where you might have 2 angled doors - so you want to maintain a single pivot point.
        7. To help maintain proper naming number should be incremented for each door on a single cabinet.
        8. arch: -2,-1,0,1,2,3,4 so far these represent Plain Panel, Square Shaker, Square, Arch, Double Arch, Cathedral and Double Cathedral.
        9. stile is the width of the stile in mm ( not including the bead )
        10. Panel thickness. If the panel is the same thickness as the stiles and rails then it is shaped on front and on the back. If the panel is 4 mm thinner than the stiles and rails then it is shaped on the front only. And if it is < 7 mm thick then it only has the bead ( represents a plywood panel.
        11. Rotate is how much you want to rotate the door ( counter clockwise )

        You need to experiment a bit with very narrow doors. Of course a plain panel can be virtualy any size. A Square shaker with 50 mm stiles could be as narrow as 100 mm - but why would you do that. I can work with cathedrals as narrow as 225.

        So any size that you need.

        1 Reply Last reply Reply Quote 0
        • G Offline
          Garry K
          last edited by 3 Apr 2013, 21:07

          After re reading - I don't believe that I have been clear enough.

          In the Sketchup program you can select a path - in this case a line and then use followme tool.

          profile and selected path

          completed molding

          This is the code that works ( but only if a face ). I've tried to create just a path but the followme looks like it only works with a face.

          face = grp.entities().add_face( p )
          face.reverse!() if( face.normal.dot( Y_AXIS ) < 0 )

          fc = []

          fc << [ 0, 2.35, y ]
          fc << [ 1.962258, 2.660791, 40 ]
          fc << [ 3.732436, 3.562742, 40 ]
          fc << [ 5.137258, 4.967564, 40 ]
          fc << [ 6.039209, 6.737742, 40 ]
          fc << [ 6.35, 8.7, 40 ]
          fc << [ 0, 8.7, 40 ]

          cutter = grp.entities().add_face( fc )
          cutter.followme( face.edges )

          1 Reply Last reply Reply Quote 0
          • G Offline
            Garry K
            last edited by 6 Apr 2013, 18:48

            @dave r said:

            That looks pretty cool for the kitchen cabinet guys. Will it work with user selected units in SketchUp?

            Dave, I am working on a inputbox for the door generator. You say user selected units. Is there a way to determine what they are?

            Another option I thought of is putting in 2 menu items

            Cabinet Door - Metric
            Cabinet Door - Imperial

            The one ruby script for the door menu is a simple .rb file. The other file is .rbs

            Do you know of anyone being able to lock down a licence for plugins or is selling them hit and miss based solely on the honor system?

            1 Reply Last reply Reply Quote 0
            • G Offline
              Garry K
              last edited by 7 Apr 2013, 21:25

              I have finished the tool interface for the cabinet door maker. It honors the model units.

              Inches Fraction

              Metrice

              Once the user clicks OK - the cursor changes to this

              Cursor

              As the user moves the cursor the x,y and z measurements are shown ( from origin )
              The user can add as many doors as they want - or choose the tool again to change sizes etc.

              I set up a hot key - 'D' wasn't being used so I figured it works for me for 'D'oor

              The forms have default values assigned at startup - but remembers the users settings between form changes.

              Is anyone interested in testing this tool out?

              1 Reply Last reply Reply Quote 0
              • G Offline
                Garry K
                last edited by 19 Apr 2013, 21:22

                This tool is now available.

                There is a zip file called DoorMaker.zip on the download page of my website http://www.CabMaker32.com

                There is one file that goes into the plugins folder - GKWare_CabMaker_Ext.rb
                There needs to be folders starting with GKWare under plugins.

                There is a pdf file in the GKWare\CabMaker folder called DoorMaker.Pdf - it has a few pages and a number of screen shots.

                You can turn on or off the tool from within preferences\extensions
                There is a button - View\ToolBars\GKWare\Door Maker Toolbar

                You can add / modify defaults and or textures.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dave R
                  last edited by 19 Apr 2013, 21:25

                  Thanks Garry. I'm going to take a look this weekend.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mics_54
                    last edited by 20 Apr 2013, 01:30

                    wow

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Garry K
                      last edited by 24 Apr 2013, 22:02

                      Dave,

                      Have you had a chance to look at the door maker?

                      Garry

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dave R
                        last edited by 24 Apr 2013, 22:11

                        Hi Garry.

                        I'm sorry. I haven't yet. I looked at the site but I haven't downloaded the trial yet. I'll try to this evening.

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          Garry K
                          last edited by 1 May 2013, 23:29

                          Dave,

                          I hate to be a pest - but it has been another week. The good news is that I've been working on a cutting list panel optimizer - which is almost ready.

                          Garry

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Dave R
                            last edited by 1 May 2013, 23:36

                            Sorry Garry, between my day job, the second job and trying to manage family life, I've not gotten to it yet. I'll try.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • G Offline
                              Garry K
                              last edited by 2 May 2013, 00:57

                              Dave,

                              I really appreciate it. I am so looking forward to your critic!

                              Garry

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                Garry K
                                last edited by 9 May 2013, 14:43

                                I've noticed that there have been quite a few downloads of the door maker plugin.

                                I would really appreciate feedback - what works, what doesn't, what you like, what you dislike, what you would like to see changed etc.

                                Any comments would be appreciated.

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  Garry K
                                  last edited by 20 May 2013, 17:15

                                  The CutMasterPro panel optimizer is now available for download on the web site. CabMaker32.com

                                  Please try it out and give me your comments.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    timinder
                                    last edited by 27 Jun 2013, 07:34

                                    Any chance that the Door Maker plugin could be made to work with Mac OS please?

                                    1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      Garry K
                                      last edited by 27 Jun 2013, 08:57

                                      What is the problem? Is it the Zip file or something else?

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        timinder
                                        last edited by 28 Jun 2013, 13:48

                                        The zip's fine, but the various scripts seem to be calling for things form a Windows file structure, i.e. C:xxx which don't exist in the Mac OS. I did have a look to see if I could re-configure them to point to the correct file locations, but it didn't work for some reason (probably because I'm doing it wrong!)

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by 28 Jun 2013, 14:09

                                          @timinder said:

                                          The zip's fine, but the various scripts seem to be calling for things form a Windows file structure, i.e. C:xxx which don't exist in the Mac OS. I did have a look to see if I could re-configure them to point to the correct file locations, but it didn't work for some reason (probably because I'm doing it wrong!)
                                          The zipped 'Door Maker' is not set up for ease of installation as its file and folder of files/subfolders are both shipped within an unnecessary 'Sketchup' folder - so the 'GKWare_CabMaker_Ext.rb' file and the 'GKWare' folder need moving from there into the usual 'Plugins' folder by hand !
                                          The plugin itself seems to be made so that it finds the path for its textures from reading the '_TextureLocation.txt' file within the 'GKWare/CabMaker' subfolder.
                                          This file defaults to: "C:/Users/Public/Documents/CabMaker32/Textures"
                                          BUT I'd expect that you could edit that file to include any valid folder path to suit yourself/OS - PC or MAC...
                                          Try it... 😕

                                          I can see no other references to 'C:/...' in the readable code other than the textures' folder path...

                                          This toolset does have some encrypted rbs files so we can't be sure what happens inside those !

                                          TIG

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

                                          Advertisement