[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.
0

tomot 
PluginStore Author
PluginStore Author
 

Re: [Plugin] DoorTool starter

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

Tomot Thanks, these tools are great indeed! :thumb:
0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

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:
0
Using Sketchup Pro 2016

seasdes 
 

Re: [Plugin] DoorTool starter

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

Doors! A famous group ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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
0

Dan 
 

Re: [Plugin] DoorTool starter

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

great work mate!!!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

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
=======
0

Mr S 
 

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!
0
"Success consists of going from failure to failure without loss of enthusiasm." - Churchill

bubbalove 
 

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:
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

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...
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

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,
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

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.
0

tomot 
PluginStore Author
PluginStore Author
 

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.
0

tomot 
PluginStore Author
PluginStore Author
 

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
0

Ben Ritter 
 

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:
0
"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
 

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.
0

tomot 
PluginStore Author
PluginStore Author
 

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.
0

tomot 
PluginStore Author
PluginStore Author
 

Re: [Plugin] DoorTool starter

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

very HELPFUL and HANDY plugin!, THANKS A LOT!
0

cyan.archnet 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: adnawri, Bull_10, NAGGA, Pio Pinzón and 3 guests

Visit our sponsors: