[Plugin] Three Line Tools (Updated March 9th, 2009)

[Plugin] Three Line Tools (Updated March 9th, 2009)

Postby Chris Fullmer » Mon Feb 23, 2009 6:50 am

Note: Used to be called "Make Vertical Lines by Height".
Note: Used to be refered to as "Vertical and "Normal" Line Tool".
(I wonder how long this alias list will get?)

Description: Three tools to help make vertical or normal lines by clicking on a point, then enter the desired line length or elevation.

Usage: Activate it at "Plugins>3 Line Tools". There are 3 tools available. Lines by height creates vertical lines with the user input length. Vertical lines by elevation creates vertical lines by the desired elevation. Normal Lines creates lines that follow the normals of the face, edge, or vertex that is selected.



UPDATE:
v1.0
* Original release
v1.5
* Added 2 more tools (3 total) and a submenu to organize them all
* Vertical lines by height lets you add a vertical by specifying its total height (can be negative).
* Vertical lines by elevation lets you add a vertical by specifying its ending elevation (can be negative).
* Lines on Normals lets you add a line that will follow the normal of the face, edge, or vertex clicked on.
* Added "Undo" support.
v1.6
* Added VCB suuport
* No more prompts. Just click click to create lines. Enter in a new height in the VCB to change lengths.
2.0:: 2009-02-28
* Made some icons and added a toolbar.
* Now this plugin registers itself with the SketchUp Extension manager so you can disable it if you don't want it in your menu.
2.1 - It now instlls itself into Plugins>Chris Fullmer Tools>3 Line Tools
And the new icons! First shows multiple lines of the same length but differing elevations, next shows lines of the same elevation but differeing lengths, and the third is a cool "N" with lines shooting off of its normals. (I felt a need to explain them since I'm not convinced they are as obvious as I think they are :) ):
line_length.png
line_elev.png
line_normals.png

Chris
Make sure to delete old versions of clf_vertical_line_maker.rb before (or after) installing. The current file name in the plugins folder is "clf_vertical_line_maker_loader.rb"
2
Last edited by Chris Fullmer on Tue Mar 10, 2009 9:37 am, edited 7 times in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Make Vertical Lines by Height

Postby free agent » Mon Feb 23, 2009 9:10 am

thanx chris, this pluggin really helps in working with land surveyor spot heights and quickly translating them to height.
0
User avatar
free agent 
 

Re: [Plugin] Make Vertical Lines by Height

Postby thomthom » Mon Feb 23, 2009 9:16 am

Chris, you're on fire! :D Don't think I've seen so many plugins rolled out so quickly. Good work.


I got a usability suggestion to this plugin. Instead of using the messagebox to enter the values, why not use the VCB? When you activate the tool you enter the length you want, then you can freely click point where the lines are created without having to press enter while you type. And you can also at any point type in a new value for other lengths. going around the model very quickly until you deactivate the tool.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Make Vertical Lines by Height

Postby matteo » Mon Feb 23, 2009 9:28 am

:berserk: that's a great help

thank you very much.
0

matteo 
 

Re: [Plugin] Make Vertical Lines by Height

Postby rv1974 » Mon Feb 23, 2009 9:32 am

Chris are you working beside cradle? :lol:
0

rv1974 
 

Re: [Plugin] Make Vertical Lines by Height

Postby Panga » Mon Feb 23, 2009 12:25 pm

Chris,

Thanks again for answering so quickly to my request, and It seems that will help others !!

I got a usability suggestion to this plugin. Instead of using the messagebox to enter the values, why not use the VCB? When you activate the tool you enter the length you want, then you can freely click point where the lines are created without having to press enter while you type. And you can also at any point type in a new value for other lengths. going around the model very quickly until you deactivate the tool.


It works pretty well, but if you can implement the Thomthom suggestion, this'll be the perfect tool __ ;)

Panga.
0

Panga 
Premium Member
Premium Member
 

Re: [Plugin] Make Vertical Lines by Height

Postby Edson » Mon Feb 23, 2009 12:37 pm

chris,

you are on a roll! one more useful script. very soon you will be among our ruby masters.

regards.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Make Vertical Lines by Height

Postby watkins » Mon Feb 23, 2009 2:52 pm

Dear Chris,

Will your script make normals to surfaces? For example, suppose one has an inclined plane on which one has placed a construction point. Can one use your plugin to create a normal of specified length at the construction point?

Regards,
Bob
0

watkins 
 

Re: [Plugin] Make Vertical Lines by Height

Postby Chris Fullmer » Mon Feb 23, 2009 6:58 pm

thomthom wrote:Chris, you're on fire! :D Don't think I've seen so many plugins rolled out so quickly. Good work.

Thanks Thom! so far they are all mostly pretty simple scripts that I can write in a day or less. I'm scared of the big multi-day scripts!
thomthom wrote:I got a usability suggestion to this plugin. Instead of using the messagebox to enter the values, why not use the VCB? When you activate the tool you enter the length you want, then you can freely click point where the lines are created without having to press enter while you type. And you can also at any point type in a new value for other lengths. going around the model very quickly until you deactivate the tool.

I think I'm not fully understanding this one. The VCB option workflow is:

Click on point
Type value (if necessary)
hit enter
repeat

right? That is the exact same workflow for the way script is set up now. Is there something I'm not seeing there? I don't mind setting it up with the VCB, I just couldn't see any real added benefit to it.

rv1974 wrote:Chris are you working beside cradle? :lol:

Actually, yes I am. I was up til 3:30am with a sick, which helped me get a lot of script writing done :)

@Bob Watkins - I really like that idea! I think that will require a separate plugin. I wouldn't want to add a pop-up box each time you start this script asking if you want vertical mode or normal mode. So let me make a new script for it. Maybe they can both be housed under a submenu together or something to help conserve precious space in the plugins menu.

Thanks everyone for testing the script and the feedback. Hopefully I'll have some update news shortly!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Make Vertical Lines by Height

Postby thomthom » Mon Feb 23, 2009 7:03 pm

Chris Fullmer wrote:I think I'm not fully understanding this one. The VCB option workflow is:

Click on point
Type value (if necessary)
hit enter
repeat

right? That is the exact same workflow for the way script is set up now. Is there something I'm not seeing there? I don't mind setting it up with the VCB, I just couldn't see any real added benefit to it.


I was thinking more like:

Activate tool
Type length value
click on points (the length of the line will be the last value entered into the VCB)
click some more points
Type in new VCB value
click new points


You only click enter when you need to change the length of the lines. As long as the lines you make are the same length you don't have to enter any values.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Make Vertical Lines by Height

Postby Chris Fullmer » Mon Feb 23, 2009 7:05 pm

Aha! I get it now. Yes, that is an even faster workflow than the current one. I think that will require some VCB figuring-out on my part. But it sounds great!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Make Vertical Lines by Height

Postby thomthom » Mon Feb 23, 2009 7:11 pm

Don't think you have to change much. Take out the input box in the onLButtonUp event. Add the onUserText http://groups.google.com/group/SketchUp ... onUserText where it sets @@last_height to the users input. ...I think from looking at the code quickly...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Make Vertical Lines by Height

Postby Chris Fullmer » Mon Feb 23, 2009 7:13 pm

thomthom wrote:Don't think you have to change much.


That is music to my ears! I'll check it out later today after class (or maybe during :) )

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Make Vertical Lines by Height

Postby rv1974 » Mon Feb 23, 2009 9:02 pm

rv1974 wrote:Chris are you working beside cradle? :lol:


Actually, yes I am. I was up til 3:30am with a sick, which helped me get a lot of script writing done :)

I simply heard a baby crying on the tutorial's background)
0

rv1974 
 

Re: [Plugin] Make Vertical Lines by Height

Postby Chris Fullmer » Fri Feb 27, 2009 9:58 am

watkins wrote:Will your script make normals to surfaces? For example, suppose one has an inclined plane on which one has placed a construction point. Can one use your plugin to create a normal of specified length at the construction point?

UPDATE! Yes, I finally got this implemented. Thanks for the suggestion Bob. This plugin now offers 3 tools. Vertical line by height, by elevation and Normal Line. Normal lines will work on a face, edge, or vertex. I've updated all the info in the first post and also the video is new too and it shows how to use the three tools. Though you can probably figure it out faster than watching the video :) Hope its useful,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Edson » Fri Feb 27, 2009 12:43 pm

chris,

thanks for the upgrade. deceptively simple, enormously useful.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby broomstick » Fri Feb 27, 2009 2:16 pm

this plugin IS AWESOME!

Tell me: does it work on mac?
0
User avatar
broomstick 
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby remus » Fri Feb 27, 2009 2:27 pm

Should work on a mac, there are very few platform dependant plugins.
0

remus 
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Edson » Fri Feb 27, 2009 2:33 pm

broomstick wrote:this plugin IS AWESOME!

Tell me: does it work on mac?

it surely does. no problem at all.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby kwistenbiebel » Fri Feb 27, 2009 2:34 pm

Wow Chris! You are really on a roll here making these tools.
I can sense you enjoy coding it. And it is so cool you share it with us.
Thanks mate!
0

kwistenbiebel 
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby pilou » Fri Feb 27, 2009 3:39 pm

Suggestion : just enter one time the measure
then at each click a vertical is drawn
Esc = Escape for choose another type and measure ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Edson » Fri Feb 27, 2009 4:09 pm

Pilou wrote:Suggestion : just enter one time the measure
then at each click a vertical is drawn
Esc = Escape for choose another type and measure ;)

good suggestion. this would make the tool even more agile to use.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Chris Fullmer » Fri Feb 27, 2009 5:45 pm

Pilou wrote:Suggestion : just enter one time the measure
then at each click a vertical is drawn
Esc = Escape for choose another type and measure ;)

Oh yeah, that was another feature I wanted to implement. Thom even gave me a starting point. I've got a little bit of time today, maybe I'll get it worked out during that. Thanks for the comments and compliments everyone. And yes, I am really really enjoying coding.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby pilou » Fri Feb 27, 2009 5:50 pm

And if you can make the same for the Greeble that will be also a super crazy cool plug! :enlight:
Ergonomic must be the first thing to think for a plug! ;)
Keep the good work! 8-)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Chris Fullmer » Fri Feb 27, 2009 5:58 pm

Hey Frenchy, I know you have issues with too many plugins cluttering your menus. Would it be helpful if I tried to make all my plugins register themselves with the extension manager, so you could disable them or enable them as needed? That way you wouldn't have to have all my plugins showing in the menus until you need them. Would that be useful?

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Edson » Fri Feb 27, 2009 6:17 pm

definitely, yes.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby pilou » Fri Feb 27, 2009 6:29 pm

Yes that can be helping, but it's not possible to create a new Menu something like "Plugins2"?
Then it's easy to put inside this new menu some numerous plugins :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby thomthom » Fri Feb 27, 2009 6:36 pm

Pilou wrote:Yes that can be helping, but it's not possible to create a new Menu something like "Plugins2"?
Then it's easy to put inside this new menu some numerous plugins :)

Nope. No way to create new top level menus in SU. :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Panga » Fri Feb 27, 2009 7:29 pm

Chris you rock !! This tool'll help a lot. Thanks again !!

Panga.
0

Panga 
Premium Member
Premium Member
 

Re: [Plugin] Vertical and "Normal" Line Tool (Updated Feb.27,09)

Postby Teezer » Fri Feb 27, 2009 8:22 pm

Nice extension! Very useful. Thanks... :thumb:
0
Real life is just another website, albeit a rather boring one.

Teezer 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: hanklin0, Yahoo Bot and 7 guests

Visit our sponsors: