[Plugin] DoorMaker

[Plugin] DoorMaker

Postby Paul Russam » Mon Nov 19, 2007 6:21 am

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 menu

You 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 later

The 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 None

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 ON

Kicker Inward:
As above but on the Inward side of the leaf – Defaults to OFF

Nameplate 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 OFF

Nameplate Inward:
As above but on the inward side of the leaf – Defaults to OFF

Handle Outward:
Here you have 5 options to choose from: - Defaults to Handle
No handle of any kind
Conventional handle at 1000mm from the ground
85mm wide by 350mm tall 5mm thick plate, vertically
centred at 1000mm from the ground
1000mm tall 35mm dia. Vertical bar vertically centred at
1000mm from the ground
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 Handle

SwingArc 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 Swing

Create/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.

Now updated to suit v2014 by TIG.
Please get the latest version from the SketchUcation PluginStore


Paul Russam
English doesn't borrow from other languages. It follows them down dark allies, knocks them over, and goes through their pockets for loose grammar.
User avatar
Paul Russam 
Premium Member
Premium Member

Re: DoorMaker

Postby dtrarch » Mon Nov 19, 2007 6:23 am


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 :)

Premium Member
Premium Member

Re: DoorMaker

Postby Paul Russam » Mon Nov 19, 2007 6:23 am

That's good to know, thanks.
Paul Russam
English doesn't borrow from other languages. It follows them down dark allies, knocks them over, and goes through their pockets for loose grammar.
User avatar
Paul Russam 
Premium Member
Premium Member

Re: DoorMaker

Postby JGA » Mon Nov 19, 2007 6:25 am

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.



Re: DoorMaker

Postby richcat » Mon Nov 19, 2007 6:26 am

Thanks Paul
Very useful


Re: [Plugin] DoorMaker

Postby tulacong » Thu Nov 27, 2008 5:33 pm

thank verymuch :sketchstatic:


Re: [Plugin] DoorMaker

Postby arquitectomaracucho » Sat Nov 29, 2008 1:31 am

:berserk: hello of Maracaibo venezuela, THANKSS very much Paul :sketchstatic:
I am an architect and served me a lot, I would be able to cut wall Automatic.
User avatar

Re: [Plugin] DoorMaker

Postby markitekt » Thu Feb 02, 2012 10:00 pm

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.


Re: [Plugin] DoorMaker

Postby markitekt » Mon Sep 24, 2012 5:39 pm

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,


Re: [Plugin] DoorMaker

Postby gullfo » Sun Sep 30, 2012 12:04 am

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). :geek:

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...
Last edited by gullfo on Sun Sep 30, 2012 6:32 pm, edited 1 time in total.
User avatar

Re: [Plugin] DoorMaker

Postby markitekt » Sun Sep 30, 2012 5:04 am

Thanks Glenn!
I'll give it a try.


Re: [Plugin] DoorMaker

Postby markitekt » Sun Sep 30, 2012 11:01 pm

I made some basic revisions to this myself to set different default settings.


Re: [Plugin] DoorMaker

Postby Edson » Mon Oct 01, 2012 6:34 pm


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.
edson mahfuz, architect | porto alegre • brasil
User avatar
Global Moderator

Re: [Plugin] DoorMaker

Postby Paul Russam » Mon Oct 01, 2012 7:25 pm

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 :oops:

If anybody want to pick it up and run with it I'm more than happy for them to do so.

Paul Russam
English doesn't borrow from other languages. It follows them down dark allies, knocks them over, and goes through their pockets for loose grammar.
User avatar
Paul Russam 
Premium Member
Premium Member

Re: [Plugin] DoorMaker

Postby markitekt » Mon Oct 01, 2012 7:33 pm

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.


Re: [Plugin] DoorMaker

Postby element » Fri Oct 12, 2012 6:22 pm

Thanks a lot for this :lol: .


Re: [Plugin] DoorMaker

Postby smb5823 » Wed Mar 12, 2014 2:06 pm

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?

Premium Member
Premium Member

Re: [Plugin] DoorMaker

Postby TIG » Wed Mar 12, 2014 3:29 pm

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


User avatar
Global Moderator

Re: [Plugin] DoorMaker

Postby Frederik » Wed Mar 12, 2014 4:04 pm

Thanks, TIG...! :thumb:
I really enjoy using this little gem from time to time... :)
Kim Frederik
User avatar
Thea Render Support
Thea Render Support

Re: [Plugin] DoorMaker

Postby smb5823 » Wed Mar 12, 2014 4:27 pm

So fast........
Many Thanks for this.

Premium Member
Premium Member

Re: [Plugin] DoorMaker

Postby caspajack » Sat May 03, 2014 3:37 pm

Hi Paul, I love this script it saves so much time. :thumb:

A question though, can the width of the door leaf where the handle sits be changed to match the other side? In most residential doors these are equal, well here in the UK at least. :)
Also the doors always appear relative to the red axis, is there a way to set them on the green?
I have looked in your instructions but can't see if this is documented anywhere.

All the best


Re: [Plugin] DoorMaker

Postby c_m1911 » Tue Jul 22, 2014 9:37 am

Well great PlugIn ..

Improvement wishes :

1/ It would be to have door as a instanced component, while modifying the D-00 leaf, all the other instances would change too ..

2/ Can you have a full glass door (clarit) without a frame around it

Thx, and best regards from France



Re: [Plugin] DoorMaker

Postby billmorr » Tue Jun 02, 2015 1:29 pm

Hi Paul

Liking the door maker but doesn't seem to operate properly in 2015?
When trying to insert it in a wall on another axes (other than the red one) the door doesn't orientate itself to that axes (ie is always set for being on the red axes)
Hope that makes sense???




Re: [Plugin] DoorMaker

Postby woodchipz » Fri Apr 05, 2019 11:17 pm

DoorMaker was written in 2007 for Google SketchUp. The thread shows an update suitable for Sketchup 2014. I am using the last freestanding 2017 version. What must be updated for me to use DoorMaker? I am a savvy woodworking; not a ruby programmer. Help please?

WoodChipz newby (sorta)


SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Ad Machine 


Return to Plugins

Who is online

Users browsing this forum: akirajj, hetansh2001, soichi21 and 17 guests