[Plugin] DoorMaker
- 
 As requested, here's DoorMaker and the description/how to guide. Door Maker: 
 This is DoorMaker, a ruby script that as its name suggests creates doors.Place the script doormaker.rb in your plugins folder, start 
 Sketchup and select DoorMaker from the Plugins menuYou will be presented with a dialog giving you many options, 
 I’ll work through them one by one but for now click OK and then
 pick a point at which you want the door to be placed.
 Hey presto you have a 910mm x 2100mm single door.It looks a little odd as you appear to have 4 leaf’s, this is 
 intentional, each leaf is on a different layer, open up your
 layers dialog and you’ll see that along with Layers0 you have
 the following 05-D-Doors, 05-D-Leaf00, 05-D-Leaf30, 05-D-Leaf-60,
 05-D-Leaf90 & 05-D-Swing. Try switching off Leaf00, Leaf30, Leaf90
 and Swing. Your left with a door 60 degrees open.All the individual groups are in a master group on the 05-D-Doors 
 layer so that you can switch on and off ALL the doors should you want to.
 You’ll note that DoorMaker has drawn, what I call the SwingArc, this is
 useful for when your producing plan views in 2D or perspective, this is on
 the layer 05-D-Swing.Why do all the layer start with ‘05’? I hear you say, well, When I’m building 
 I tend to layer my building like so: Walls, floor, Roofs etc. are on layers
 starting with 01. Stairs, ramps etc on the 02’s and so it goes on. You can change
 the ‘05-‘ to whatever you want and I’ll cover this in a bit.DoorMaker creates upto 5 materials in the model Door-Frame, Door-Leaf, 
 Door-Fittings Door-Nameplate and Door-Glass. These are ready for you to
 change to whatever you like be it white, be it wood, be it anything Sketchup
 can create. I say upto because should you specify a door with, say no glass
 elements then DoorMaker will not clutter your model with the unneeded glass material.The frame’s profile is a simple rectangular one, this can be changed in the 
 dialog to 3 types, again I’ll cover this laterThe door you’ve just created has a kicker plate on one side of the leaf and 2 
 handles, one on each side. These have the material Door-Fittings applied to them.I use the terms Outward and Inward to describe which side of the leaf we are 
 talking about. Imagine you are standing in front of a door, Outward would be
 as if the door is opening ‘Out’ from your position and Inward would be as if
 the door is opening ‘In’ from your position.I have assumed some defaults that can be changed by editing the script, all 
 the values used are at the beginning and you are free to change what you want.
 Be warned though, should I release a revised script and you download it, it will
 reset any values changed back to my defaults.Now then lets work through the dialog: 
 Layer Root:
 Here you can change that ‘05-‘ thing I was talking about earlier, It
 you type in ‘Fred-‘ then your layers would be Fred-D-Door,
 Fred-D-Leaf00 etc… so for example if you had 2 building on a site
 you could have Bld1- and Bld2- as your layer roots.
 Door Type:
 Here you can select Single, Double or Door and a half, you’ll note
 that Door and a half has 4 sizes 830mm,930mm,1030mm and 1130mm there
 are the std. UK leaf sizes (let me know f this is wrong) The smaller leaf
 is calculate as being the frame opening – primary leaf, so a 1450mm opening
 with a frame width of 50mm and a primary leaf of 930mm would result in the
 smaller leaf being 1450-50-50-930 = 420mm
 Opening Width:
 Here you type the structural opening width into which the door frame is to
 fit (not the leaf size). We use mm in the UK so I assume that you would have
 to append cm, m or ‘ for centimetres, meters or inches. – Defaults to 910mm
 Opening Height:
 As per Width but for the height. – Defaults to 2100mm
 Frame Depth:
 Here you specify the depth of the frame, normally it’s the wall thickness
 but not always. – Defaults to 100mm
 Frame Width:
 Frame width is the thickness of the visible part of the frame. – Defaults to 50mm
 Frame Profile:
 Select Simple, Rebated or Rebate + Architrave. Simple is the above rectangular
 profile, Rebated has the leaf rebated in to the frame by a preset 15mm. This make
 the leaf 15mm taller and 30mm(15 each side) wider. Rebate + Architrave is the
 same as Rebated but with the addition of architraves to cover the join between
 the frame and the wall. The architraves are 15mm deep and the frame width
 wide. – Defaults to Simple
 Leaf Thickness:
 Specify the thickness of the leaf here – Defaults to 40mm
 Leaf Offset:
 Here you can choose either Flush or Centred, Flush has the leaf position
 to the back of the frame so that when its shut its ‘flush’ with the frame/wall.
 Centred has the leaf centred in the frame no matter what the frame
 depth. – Defaults to Flush
 Panel Type:
 This is where you can get a bit creative, There are 7 options here to
 choose from: - Defaults to NoneNone: 
 Plain vanilla solid door leaf
 VP Centred:
 Create a 175mm wide glass opening in the middle of the leaf (or leaf’s
 if it’s a double door) ,100mm from the top of the leaf and down to the
 bottom of the pushplate(see later), the opening is rebated 15mm both
 sides to create a d good look.
 VP Offset:
 Exactly the same as VP Centred but the opening is near the edge of the
 leaf, enough leaf is left to allow a handle to be placed even if a
 handle type is not specified.
 1x1 Panel Glass:
 1 big glass panel filling the leaf
 1x1 Panel Solid:
 As per the 1x1 glass but not ‘punched through’, thus leaving a
 15mm recessed panel in the leaf
 1x2 Panel Glass:
 2 glass panels with the horizontal ‘split’ at the height of the handle.
 1x2 Panel Solid:
 As per 1x1 solid but 2 panels
 Port Hole:
 This gives you a round 300mm dia. Hole at 1700mm from the floor in the
 centre of the leaf.Kicker Outward 
 The kicker is the (usually) steel plate at the bottom of the door where
 people ‘kick’ it open, DoorMaker places a 5mm thick plate 25mm in from the
 edges of the leaf and 150mm tall on the Outward open side of the leaf – Defaults to ONKicker Inward: 
 As above but on the Inward side of the leaf – Defaults to OFFNameplate Outward: 
 This creates a 250mm x 75mm nameplate centred on the leaf at about
 eye level on the Outward side of the leaf. If you specify any vision
 panel and a nameplate the nameplate will not be created. – Defaults to OFFNameplate Inward: 
 As above but on the inward side of the leaf – Defaults to OFFHandle Outward: 
 Here you have 5 options to choose from: - Defaults to Handle
 None:
 No handle of any kind
 Handle:
 Conventional handle at 1000mm from the ground
 Plushplate:
 85mm wide by 350mm tall 5mm thick plate, vertically
 centred at 1000mm from the ground
 Longbar:
 1000mm tall 35mm dia. Vertical bar vertically centred at
 1000mm from the ground
 Panicbolt:
 25mm dia. horizontal bar at 1000mm from the ground – as used
 on emergency escape doors.Handle Inward: 
 As above but for the inward side of the leaf, so you could have a
 push plate on the outward and a longbar on the inward. – Defaults to HandleSwingArc Style: 
 Chose from 3 options None, Single Swing and Double Swing. None is a bit
 obvious, Single swing draws a 90 degree arc and Double draws a 180 degree
 arc. The arcs are drawn 1mm above the floor level. – Default is Single SwingCreate/Use Default Materials: 
 This will instruct DoorMaker to create and use up 5 materials as mentioned
 near the beginning of this document. Should you choose NO then DoorMaker
 will use the default Sketchup materials (tan/blue) for all the elements.Any values you type or options you select in the dialog stay selected throughout 
 you Sketchup session, Once you close Sketchup the values return back to their defaults.Although I’ve put in a number of ‘error catchers’ such as: 
 Don’t do a vision panel unless the leaf is wide enough.
 Draw the porthole at 1700mm from the ground unless the
 leaf isn’t tall enough, in which case draw it XXXmm from
 the top of the leaf.
 I cannot cater for every eventuality, It is perfectly possible to create
 a door 300mm wide with a leaf thickness of 200mm and a frame depth of
 2000mm….. but why would you????Have fun and feel free to point out any errors or wishes. %(#FF0000)[Now updated to suit v2014 by TIG. 
 Please get the latest version from the SketchUcation PluginStore] http://sketchucation.com/pluginstore?pln=DoorMaker
- 
 Paul Thanks a bunch for Door Maker. 
 Very slick.Just wanted to mention for the feet and inches crowd, that the ruby does use the units set by the user. Not just hard wired as metric.  Dave Dave 
- 
 That's good to know, thanks. 
- 
 Thanks very much for the routine, it works very well. 
 Just the one comment.
 Rather than Grouping the doors, could they not be one component arrayed about a point? This would optimise the model a bit more.
 Otherwise, the level of detail & in the model & ease of use is excellent.JGA 
- 
 Thanks Paul 
 Very useful
- 
 thank verymuch 
- 
 hello of Maracaibo venezuela, THANKSS very much Paul 
 I am an architect and served me a lot, I would be able to cut wall Automatic.
- 
 Does anyone know of compatibility issues or problems with this plugin for version 8? 
 I get continual bugsplats. I'm not sure what is causing this. This is one of my favorites.
 Mark P.
- 
 I love and use this plugin often. However, is there a way to set the default sizes to Feet and inches? I am not at all familiar with the ruby programming, but I'd like to set the defaults to standard 3' x 7' doors with a standard frame and width and no material colors. Could those values be highlighted in the script for changing? 
 Thanks for any help,
 Mark
- 
 Thanks Glenn! 
 I'll give it a try.
 Mark
- 
 i have my "personalized version" (meaning use it at your own risk) set to imperial plus i made some adjustments - added a settable value for the push plate width since it causes an offset on the panels and glass, and i paint the back of the glass with the door-glass material so it's transparent on both sides. these last two items i'd like to see added to the original copy (as well as an option to select imperial or metric).  update note: i also rem'd out the half-door stuff because it wasn't fully baked but it might be easier if the script simply too a double side door and shifted the center-line (meaning one side is smaller than the other...) i also took out the mm conversion items used because with imperial it wasn't needed... 
 
- 
 DoorMaker.rbI made some basic revisions to this myself to set different default settings. 
 Thanks,
 Mark
- 
 paul, DoorMaker is an invaluable plugin and I use it a lot. but there is one thing that I do not like about it: the fact that the geometry that make up frames and leaves does not remain on Layer 0. is there a way to change it? another thing that would be useful is to be able to decide the position of the door leaf at creation so that one does not have to delete the unwanted door positions afterwards. thanks again for a great plugin. 
- 
 Hello all, 
 I'd love to be able to help but to be honest this is the only plugin I ever wrote and looking at the code now I cant remember anything about Ruby If anybody want to pick it up and run with it I'm more than happy for them to do so. Sorry. 
- 
 No problem Paul. You have forgotten more Ruby than I'll ever know. 
 Guess we'll have to leave it up to other interested parties.
 Thanks,
 Mark
- 
 Thanks a lot for this  . .
- 
 Unfortunately Doormaker.rb which I use most days malfunctions when used in SU2014Pro. 
 On initial startup if you don't change any of the option selections Door Maker inserts a simple door correctly.
 It will also accept different sizes for frame/leaf etc.
 Select any of the rebate options; panel types; kicker; nameplate options and it only creates an outline of the door.Shame cos it's one of my must have plugins.... Anybody have the time and inclination to look at this with Ruby 2? 
- 
 I have updated the script to v2.1 which will now be compatible with v2014. 
 I also took the opportunity to module-ize it and swap the hundreds of $ variables for @ and enduring @@ ones.
 Get it from the PluginStore http://sketchucation.com/pluginstore?pln=DoorMaker 
- 
 Thanks, TIG...!  
 I really enjoy using this little gem from time to time... 
- 
 Wow TIG 
 So fast........
 Many Thanks for this.
Advertisement






 
                             
                             
                             
                             
                             
                             
                            