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

    [Plugin] DoorTool starter

    Scheduled Pinned Locked Moved Plugins
    18 Posts 13 Posters 19.0k Views 13 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.
    • B Offline
      bubbalove
      last edited by

      Thanks a bunch... please do keep working on this tool. In time... it will be just as useful as the windowizer!

      "Success consists of going from failure to failure without loss of enthusiasm." - Churchill

      1 Reply Last reply Reply Quote 0
      • MALAISEM Offline
        MALAISE
        last edited by

        Thanks for work done on this plugin 👍
        go ahead...
        MALAISE 👍 👍

        La Connaissance n'a de valeur que partagée

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          Hi Tomot,
          Great tool.
          Let me add my 2 cts about the code:
          As I made a lot of mistakes myself in my scripts, I know how it is frustrating when you release a script and that it may corrupts other scripts at the user end. You use many globals (such as $pts,$ip, etc).
          I suggest you use instance variables or class variables instead such as @pts, @ip,etc). This way you prevent your variables to overwrite other variables of the same name in other scripts.

          class DoorToolRight
          def initialize
              $ip = Sketchup;;InputPoint.new
              $ip1 = Sketchup;;InputPoint.new
              reset
          
              # sets the default Door settings
              $dwthick = 6.0. inch if not $dwthick            # door frame/wall thickness
              $rdfthick = 0.0. inch if not $rdfthick
          ...
          

          Could be:

          class DoorToolRight
          def initialize
              @ip = Sketchup;;InputPoint.new
              @ip1 = Sketchup;;InputPoint.new
              reset
          
              # sets the default Door settings
              @dwthick = 6.0. inch if not @dwthick            # door frame/wall thickness
              @rdfthick = 0.0. inch if not @rdfthick
          ...
          

          These variables are "readable" by all the methods of the class, but "live" only when the tool object lives. This is safer...

          DB

          1 Reply Last reply Reply Quote 0
          • utilerU Offline
            utiler
            last edited by

            tomot, it doesn't appear that the script cuts a plane through the wall; am i right?
            see attached.
            cheers,


            doortool-cutting plane.png

            purpose/expression/purpose/....

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

              @utiler said:

              tomot, it doesn't appear that the script cuts a plane through the wall; am i right?
              see attached.
              cheers,

              It works in the same way WindowTools works.
              Think about how Windows and Doors are installed into openings in typical Western Frame Construction.

              The Framer or Carpenter must first define or build the opening, into which the window or door is to be installed. In the same way you must provide the opening in a wall in SU first into which the door or window will be installed.

              Furthermore the opening in a wall is also related to the Wall Thickness. If your walls are of a predefined thickness other than the default 6" then you must change the thickness in the dialog box to reflect your wall thickness.

              You only want to use my window or door tool if you want to create objects , where your design will be rendered or seen from both inside or outside. If you are concerned only about rendering the exterior view then you could use Windowizer.

              [my plugins](http://thingsvirtual.blogspot.ca/)
              tomot

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

                @didier bur said:

                Hi Tomot,

                I suggest you use instance variables or class variables instead such as @pts, @ip,etc). This way you prevent your variables to overwrite other variables of the same name in other scripts.
                ...

                Thank you Didier for your comments. I should have been more careful. I mistakenly posted my development
                version, in which I need globals so I can check the values in the console.

                [my plugins](http://thingsvirtual.blogspot.ca/)
                tomot

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

                  Tomot, I appreciate your efforts and looks like it has great possiblities. My main suggestion is that the hardware should include lever style handles. Also, what about solid wood doors, or did I miss something?

                  Ben

                  1 Reply Last reply Reply Quote 0
                  • jim smithJ Offline
                    jim smith
                    last edited by

                    Tom,
                    Thanks for taking the time to create the door.rb.

                    I have used DoorMaker.rb by PKR but your routine looks like it will give a few more options when your done. You might look at doormaker.rb if you haven't already, there are quite a few good features in it like the four door swings on different layers.

                    Thanks again - please keep working on this tool - I will look for the updates ☀

                    "Out of clutter find simplicity,
                    from discord find harmony,
                    In the middle of difficulty lies opportunity"
                    Albert Einstein

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

                      @unknownuser said:

                      Tom,
                      I have used DoorMaker.rb by PKR but your routine looks like it will give a few more options when your done. You might look at doormaker.rb if you haven't already, there are quite a few good features in it like the four door swings on different layers.

                      Jim I have looked at Doormaker. That's why I'm trying hard to provide an equally, competent, alternative.
                      I can see where PKR derived his/her approach, its much more technical and institutional, in nature.
                      I wanted to maintain and stay on the residential side of doors. I'm not intending to include kick plates
                      hinges, or dbl sided rebated frames, in steel or wood. There is obviously an unlimited amount one can or should not
                      show on drawing, and that's where a Door Schedule and Specification normally take over.

                      [my plugins](http://thingsvirtual.blogspot.ca/)
                      tomot

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

                        @ben ritter said:

                        Tomot, My main suggestion is that the hardware should include lever style handles. Also, what about solid wood doors, or did I miss something? Ben

                        Thanks Ben I will attempt a lever option. Although you are well aware you opening up a very large can of worms
                        when we are starting to talk about door accessories 😄 The solid wood door is what in the drop down menu I call
                        a Slab door.

                        [my plugins](http://thingsvirtual.blogspot.ca/)
                        tomot

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          cyan.archnet
                          last edited by

                          very HELPFUL and HANDY plugin!, THANKS A LOT!

                          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