SketchUcation Premium Membership

 

 

[Plugin] DoorTool starter

[Plugin] DoorTool starter

Postby tomot » Sun Oct 26, 2008 7:27 pm

I'm currently developing a DoorTool, which will work in a similar fashion to my WindowTool
viewtopic.php?f=180&t=12869

This tool will contain both a Right and Left Hand door sub menu. You will also be able to create Right and Left Hand Reverse doors from the same side of the opening. And as in WindowTool I intend to break out separate door items such as hardware, door frame, door trim, louvers, and solid panels, and glass panels. In addition Door Styles and Rails will also be adjustable.
The doors will automatically be placed on a door layer and the door swing arc (which is not an arc yet) will be placed on the a doorswing layer. I'm currently releasing the DoorToolRight.rb ONLY, to see if their is any interest in this ruby. The remaining rubies for adding frames, trim, louvers, grilles, and icon bar will come later depending on the response.
Please, register (free) to access all the attachments on the forums.
tomot
 
Posts: 610
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby CadFather » Sun Oct 26, 2008 8:57 pm

Tomot Thanks, these tools are great indeed! :thumb:
Quarr-IT - SketchUp Training from the Master.. . ;) .
User avatar
CadFather
 
Posts: 788
Joined: Fri Nov 16, 2007 11:03 am
Location: London, Milano, Sicily
Name: Max Coppoletta

Re: [Plugin] DoorTool starter

Postby seasdes » Sun Oct 26, 2008 9:55 pm

Tomot

Thaks a lot. I would find this rubie very useful - especially if you develop it further as you suggested.

Walter :ecstatic:
seasdes
 
Posts: 88
Joined: Tue Nov 13, 2007 11:22 am

Re: [Plugin] DoorTool starter

Postby Pilou » Mon Oct 27, 2008 12:32 am

Doors! A famous group ;)
Please, register (free) to access all the attachments on the forums.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10027
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby Dan » Mon Oct 27, 2008 7:36 am

Very useful script, at least for me.
Thanks a lot, tomot!
And, of course, as an architect, I'll be more than happy to have such a nice tool.
Keep up the good work!

Dan
Dan
 
Posts: 33
Joined: Mon Nov 19, 2007 7:54 pm

Re: [Plugin] DoorTool starter

Postby utiler » Mon Oct 27, 2008 8:43 am

great work mate!!!
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1924
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby Mr S » Mon Oct 27, 2008 9:20 am

Considering how valuable the Windowizer tool has been it seems strange on reflection that the same hasn't been done for doors long ago.
This will be a really helpful tool.
I look forward to the the completed project.
Thanks for taking the time out to provide yet another valuable tool.

(The guys at Google are going to have to come with something special for SketchUp 7. The Ruby guys keep racing ahead with new ideas!)

Regards
Mr S
=======
Mr S
 
Posts: 264
Joined: Fri Nov 16, 2007 3:44 pm
Location: Liverpool, England

Re: [Plugin] DoorTool starter

Postby BubbaLove » Mon Oct 27, 2008 2:42 pm

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
BubbaLove
 
Posts: 715
Joined: Fri Nov 16, 2007 4:19 pm
Location: Furniture capital of the world!
Name: David Love

Re: [Plugin] DoorTool starter

Postby MALAISE » Mon Oct 27, 2008 6:20 pm

Thanks for work done on this plugin :thumb:
go ahead...
MALAISE :thumb: :thumb:
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

Re: [Plugin] DoorTool starter

Postby Didier Bur » Mon Oct 27, 2008 8:38 pm

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.

Code: Select all
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:

Code: Select all
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...
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby utiler » Tue Oct 28, 2008 1:30 am

tomot, it doesn't appear that the script cuts a plane through the wall; am i right?
see attached.
cheers,
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1924
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby tomot » Tue Oct 28, 2008 2:59 am

utiler wrote: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.
tomot
 
Posts: 610
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby tomot » Tue Oct 28, 2008 1:45 pm

Didier Bur wrote: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.
tomot
 
Posts: 610
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby Ben Ritter » Tue Oct 28, 2008 3:40 pm

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
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] DoorTool starter

Postby Jim Smith » Tue Oct 28, 2008 6:23 pm

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 :enlight:
"Out of clutter find simplicity,
from discord find harmony,
In the middle of difficulty lies opportunity"
Albert Einstein
User avatar
Jim Smith
Premium Member
Premium Member
 
Posts: 418
Joined: Mon Nov 12, 2007 2:25 pm
Location: Crown Point, Indiana, USA , home and office)
Name: Jim Smith
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby tomot » Tue Oct 28, 2008 7:24 pm

Jim Smith wrote: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.
tomot
 
Posts: 610
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby tomot » Tue Oct 28, 2008 7:31 pm

Ben Ritter wrote: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.
tomot
 
Posts: 610
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] DoorTool starter

Postby cyan.archnet » Sat Nov 08, 2008 4:29 am

very HELPFUL and HANDY plugin!, THANKS A LOT!
cyan.archnet
 
Posts: 52
Joined: Tue Jun 03, 2008 10:32 am

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.

Ad Machine
Robot
 
Posts: 2012



 

Return to Plugins

Who is online

Users browsing this forum: Litchi, pizon and 9 guests