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

    Trouble modeling a cabinet door

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

      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

        @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

          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

            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
            • Dave RD Offline
              Dave R
              last edited by

              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

                wow

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Garry K
                  last edited by

                  Dave,

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

                  Garry

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

                    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

                      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
                      • Dave RD Offline
                        Dave R
                        last edited by

                        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

                          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

                            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

                              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

                                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

                                  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

                                    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

                                      @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
                                      • G Offline
                                        Garry K
                                        last edited by

                                        The DoorMaker.pdf file explains what the 3 files that start with _ are for.
                                        They are not in effect with the _
                                        If you want to use them then rename them by removing the _

                                        You should be able to just unzip and move all the files under plugins

                                        The purpose of the _texturelocation.txt file was if you have CabMaker32 installed - a windows only cabinet making software, or if you are running multiple versions of Sketchup. This allows you to have 1 copy of textures at around 50 megs rather than many copies.

                                        I will look into the encrypted files for file references.

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

                                          Thanks for the clue about removing the '_' from the start of those file names 😕
                                          Presumably the 'texture' path file can then point anywhere ?
                                          It is not PC specific ?

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            Garry K
                                            last edited by

                                            I do not think that it is PC specific. However - I do not own a Mac - so I'm not sure what is going on.

                                            I looked into the 2 encrypted files - nowhere is there a reference to 😄

                                            The _ files are simply there to give examples.

                                            1. TextureLocatio.txt contains the path to textures
                                            2. defaults.txt contains the default configuration you want at startup
                                            3. textures.txt contains the list of textures and in what order they appear in the drop down list.

                                            It is possible that the file names and paths are case sensitive (like linux)

                                            The name in the script for glass and mirror is glass.png and mirror.png however the file names in the Image folder is glass.PNG and mirro.PNG

                                            All the rest of the images are in lower case.

                                            In the scrip we have several occurances of using \ and several occurances of using / in paths

                                            This is how the scrip refereces the various files.
                                            filename = ABSDIR + '\textures.txt'
                                            filename = ABSDIR + '\textureLocation.txt'
                                            filename = ABSDIR + '\defaults.txt'

                                            This code is from the GKWare_CabMaker_Ext.rb

                                            RBSFILE = LOADER.split("_")[0] << '.rbs'

                                            RELDIR is relative to Plugins dir, OR the dir from

                                            the $LOAD_PATH array that require used to find it.

                                            RELDIR = File.dirname( PATH )

                                            if ROOT
                                            ABSDIR = File.join( ROOT, RELDIR )
                                            else

                                            assume the target dir is directly below, the dir that THIS file is in.

                                            ABSDIR = File.join( File.dirname(FILE), RELDIR )
                                            end

                                            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