SketchUcation Premium Membership

 

 

[Plugin] Lines to tubes

[Plugin] Lines to tubes

Postby Didier Bur » Sun Aug 31, 2008 10:17 pm

Hi all,
Here is an update of my former script "line2cyl.rb".
Intended to create renderable wire frame models.
Some bug fixes and enhancements:
- Make group of all tubes or not,
- Each tube is a group or not,
- Paint tubes with a material,
- Quick doc included.

Have fun,

09.12.08: french version available
Please, register (free) to access all the attachments on the forums.
Last edited by Didier Bur on Fri Sep 12, 2008 8:42 pm, edited 1 time in total.
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] Lines to tubes

Postby Pilou » Sun Aug 31, 2008 10:25 pm

A new "hit" for sure 8-)
PS In french "Hit" = tube :mrgreen:
Last edited by Pilou on Sun Aug 31, 2008 11:39 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10062
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] Lines to tubes

Postby johnsenior1973 » Sun Aug 31, 2008 10:28 pm

Thanks a lot for this great new plugin.

One thing though, the PDF says that the tool can be selected in the Tools menu. That wasn't the case for me. It was in the Plugins menu.

EDIT: I was wrong. I was using the Lines2Cylinders ruby from the Plugins. I cannot find the Line2Tube ruby at all.
johnsenior1973
 
Posts: 594
Joined: Fri Dec 07, 2007 4:36 pm
Location: Elizabethtown, Kentucky, USA

Re: [Plugin] Lines to tubes

Postby solo » Sun Aug 31, 2008 10:53 pm

Thanks mate, works great.

My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10774
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Lines to tubes

Postby Pilou » Mon Sep 01, 2008 12:10 am

I cannot find the Line2Tube ruby at all.

Menu Tool/ Convert arcs, circles, curves, lines to cylinders ;)
dome.jpg
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Mon Sep 01, 2008 12:19 am, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10062
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] Lines to tubes

Postby utiler » Mon Sep 01, 2008 12:18 am

thank didier, just what i need this week.....!!!!
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby johnsenior1973 » Mon Sep 01, 2008 12:51 am

Pilou wrote:
I cannot find the Line2Tube ruby at all.

Menu Tool/ Convert arcs, circles, curves, lines to cylinders
Please, register (free) to access all the attachments on the forums.
johnsenior1973
 
Posts: 594
Joined: Fri Dec 07, 2007 4:36 pm
Location: Elizabethtown, Kentucky, USA

Re: [Plugin] Lines to tubes

Postby Pilou » Mon Sep 01, 2008 1:11 am

I don't know what I can say more :roll:
Maybe for any reason the plug is not installed in the good place?
what_can_isay.jpg
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: 10062
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] Lines to tubes

Postby boofredlay » Mon Sep 01, 2008 2:16 am

Didier, I am getting the same result as johnsenior1973.
I have placed the ruby in the Plugins folder but does not show up in the Tools menu.


Lines2_2.jpg

Lines2_1.jpg
Please, register (free) to access all the attachments on the forums.
User avatar
boofredlay
Global Moderator
 
Posts: 9009
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby CameronVan » Mon Sep 01, 2008 2:20 am

It is not showing up for me either.
CameronVan
 
Posts: 41
Joined: Sun Aug 31, 2008 11:36 pm
Name: Cameron Van

Re: [Plugin] Lines to tubes

Postby utiler » Mon Sep 01, 2008 2:40 am

look under plugins..... [to the left of HELP!!!!] :roflmao: :roflmao: :roflmao:

sorry, had a little moment there...
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby boofredlay » Mon Sep 01, 2008 2:51 am

Is that where it shows up for you because it is not there for me?

Lines2_3.jpg

Furthermore the pdf file Didier attached said it would be located under Tools, not Plugins.


Edit:
Here is part of the pdf just in case you did not read it.
Lines2_4.jpg

And yes... I restarted SU.
Please, register (free) to access all the attachments on the forums.
User avatar
boofredlay
Global Moderator
 
Posts: 9009
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby utiler » Mon Sep 01, 2008 5:04 am

You'r right Boo, Tools is where it is.....


now have a little moment at my expense!!!
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby Chris Fullmer » Mon Sep 01, 2008 5:59 am

It was listed just fine for me on Vista 64bit in the tools menu. Great plugin!

Here's a helix, triple helix, double helix, something that isn't a helix, but sort of close, then another 10x helix or something. I'm sure most of those names are wrong, so just look at the picture :)

Chris
Please, register (free) to access all the attachments on the forums.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6695
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby Pilou » Mon Sep 01, 2008 8:12 am

for the problems, maybe you must disable the old "line2cyl.rb"? ;)
maybe...
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10062
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] Lines to tubes

Postby gaucho » Mon Sep 01, 2008 9:16 am

Thanks didier!
It works great!

I've already used... :)

One single possible request... would be possible to modify so we could extrude along square shapes as well?
So in Solo's image above for example, i could quickly build beans, columns.. etc etc.. all square?

Thanks again!

PS: i've just donwloaded your all in one file... i'm feeling it'll take me ages to check them all...
"eat well, stay fit, die anyway..."
gaucho
 
Posts: 73
Joined: Wed Jan 30, 2008 4:14 pm
Location: London
Name: Giovani Cervo

Re: [Plugin] Lines to tubes

Postby sepo » Mon Sep 01, 2008 12:07 pm

for the problems, maybe you must disable the old "line2cyl.rb"?
maybe...


for me it works with old tool....

Thanks Didier for a very usefull plugin... I was wondering if there is way to clean up intersection...
Please, register (free) to access all the attachments on the forums.
sepo
 
Posts: 1562
Joined: Wed Nov 14, 2007 1:19 pm
Location: Northampton UK
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby urgen » Mon Sep 01, 2008 12:17 pm

...thanks,Didier!...I expected it for a long time! ;) :D
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin] Lines to tubes

Postby rv1974 » Mon Sep 01, 2008 12:30 pm

Very nice Didier, thanks
Additionally may be you could:
1/ add a rotation parameter (when precision is 4 one would get square section (rotation 45))
2/now I weld lines to get continuous result. Any chance to get it automatically?
3/conjunctions?
rv1974
 
Posts: 523
Joined: Tue Nov 13, 2007 11:38 am
Name: rv1974
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby urgen » Mon Sep 01, 2008 1:32 pm

Pilou wrote:for the problems, maybe you must disable the old "line2cyl.rb"? ;)
maybe...

...yes! "line2cyl.rb" should be deleted :D
...Didier, please restore this function in "projection_extension.rb" ;)
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin] Lines to tubes

Postby johnsenior1973 » Mon Sep 01, 2008 2:04 pm

Deleting the lines2cyl ruby did sort out the problem.
johnsenior1973
 
Posts: 594
Joined: Fri Dec 07, 2007 4:36 pm
Location: Elizabethtown, Kentucky, USA

Re: [Plugin] Lines to tubes

Postby Didier Bur » Mon Sep 01, 2008 4:54 pm

Hi all,
Sorry for the inconvenience of the "not showing plugin" problem. My fault. You must delete old "line2cyl.rb" of your plugins folder OR I must correct the name of the plugin in the code (I forgot to change it). If line2cyl is loaded first, SU doesn't create another menu item in the tools menu for the new version.

would be possible to modify so we could extrude along square shapes as well?

Use a precision of 4 and you'll get square section prisms.(RTFM)
please restore this function in "projection_extension.rb

Does this make sense ? This function has nothing to do with projection IMHO...
I was wondering if there is way to clean up intersection...

The script can't do it (I mean, quite difficult to code). A workaround is to draw as much curves as you can, and select "Yes" in the "follow-me on curves" option. But it cannot clean intersections on T or Y or X branching edges.
Maybe next version will do it ?
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] Lines to tubes

Postby Frederik » Mon Sep 01, 2008 7:53 pm

THANKS A LOT, Didier..!!
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby Dylan » Mon Sep 01, 2008 8:14 pm

Thanks Didier.

Could this be adapted to use a semi-circle with thickness? I am thinking of use for ridge tiles on a roof.
Dylan
 
Posts: 1932
Joined: Mon Oct 22, 2007 1:41 pm
Location: Royston (Herts), UK
Name: Dylan Morton

Re: [Plugin] Lines to tubes

Postby urgen » Mon Sep 01, 2008 10:24 pm

Dylan wrote:Could this be adapted to use a semi-circle with thickness? I am thinking of use for ridge tiles on a roof.

...HA!...good idea,Dylan! ;) :D
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin] Lines to tubes

Postby ely862me » Tue Sep 02, 2008 12:45 am

:thumb: :ecstatic:
Another piece of....what????...let*s say Pandora*s box!!
This will help me to make tubular chassis instead of what i was making before.
;)
Thank you Mr. Didier!!

Elisei
Please, register (free) to access all the attachments on the forums.
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me
Top SketchUcator
 
Posts: 1470
Joined: Mon Jan 21, 2008 6:54 pm
Location: Romania
Name: Elisei
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Lines to tubes

Postby utiler » Tue Sep 02, 2008 2:05 am

sepo wrote:
for the problems, maybe you must disable the old "line2cyl.rb"?
maybe...


for me it works with old tool....

Thanks Didier for a very usefull plugin... I was wondering if there is way to clean up intersection...


Ditto Sepo, I found the same thing...
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby 2myChaGrin » Tue Sep 02, 2008 2:22 am

Thanks so much Didier! You just made my life so much easier!
2myChaGrin
 
Posts: 21
Joined: Mon Jan 21, 2008 8:28 pm

Re: [Plugin] Lines to tubes

Postby boofredlay » Tue Sep 02, 2008 2:42 pm

Pilou wrote:for the problems, maybe you must disable the old "line2cyl.rb"? ;)
maybe...

I did not have a chance to look at this until now on my work machine. I had line2cyl.rb here as well. I installed Lines to tubes and got the same results... not showing up. So I then tried as you suggested Pilou, deleting line2cyl.rb and now it is showing up.
Thanks. :thumb:
User avatar
boofredlay
Global Moderator
 
Posts: 9009
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Lines to tubes

Postby Marian » Tue Sep 02, 2008 4:49 pm

i think there should also be an option to make not round tubes but square hexagonal triangular ones.
User avatar
Marian
 
Posts: 1340
Joined: Thu Jan 03, 2008 10:31 am
Location: Suceava / Cuj-Napoca, Romania
Name: Marian

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: blajnov, fred.dy, Krisidious, PG, Pilou, Vofka and 11 guests