SketchUcation Premium Membership

 

 

[Plugin] Select Lines by Length (Updated March 9th, 2009)

[Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby Chris Fullmer » Mon Feb 23, 2009 3:25 am

Descrtiption: This script selects all lines of a specified length.
Usage: You can start with a single line selected and this tool will select all other edges in the model of the same length. OR you can have nothing selected and it will prompt you to supply a length. The length is automatically in the default model units or you can specify ( 12", 2', 10cm, 110mm, etc).



v1.1 - Changed where it loads itself.

Chris
Please, register (free) to access all the attachments on the forums.
Last edited by Chris Fullmer on Tue Mar 10, 2009 9:29 am, edited 1 time in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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] Select Lines by Length

Postby Panga » Mon Feb 23, 2009 1:05 pm

Nice script Chris, That'll hepl me a lot.

Thanks.
Panga
Premium Member
Premium Member
 
Posts: 357
Joined: Fri Dec 14, 2007 11:04 am
Location: FRANCE

Re: [Plugin] Select Lines by Length

Postby azuby » Mon Feb 23, 2009 1:46 pm

I also coded something similar this night reusing the code form "Select all with same orientation" (SAWSO) It's should be simple to integrate the functionality to select more than one line, Chris.

azuby
error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory* | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

Bad English? PM me, correct me. :)
azuby
 
Posts: 309
Joined: Mon Nov 12, 2007 3:36 pm
Location: Berlin (Germany)

Re: [Plugin] Select Lines by Length

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

True, it wouldn't be that much more code to make it so it allowed for multiple starting lines being selected. Just a single line was the request, but if multiple lines is desired, I could expand it.

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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] Select Lines by Length

Postby Pilou » Wed Feb 25, 2009 6:36 pm

Tricky :enlight:
Maybe that be possible to choose something like this

13 <= length < 20 ?
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10026
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] Select Lines by Length

Postby Dee256 » Sat Feb 28, 2009 12:17 pm

Thanks, Chris! It's stuff save my worktime! Thanks Thanks Thanks!!! :ecstatic:
Dee256
 
Posts: 2
Joined: Sun Feb 15, 2009 7:31 pm

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby sigue2000 » Tue Mar 10, 2009 10:31 am

That's a great script Chris!

Thank you.
It should save me a lot of clicks in the future.
sigue2000
 
Posts: 6
Joined: Fri Dec 21, 2007 10:05 pm

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby Pilou » Wed Mar 11, 2009 9:39 pm

It's a pity that works not for a line "grouped" or a line "component"! ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10026
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] Select Lines by Length (Updated March 9th, 2009)

Postby Pilou » Tue Mar 24, 2009 9:42 am

If I want all lines of a selection? (not the faces ! )
Can you add something for that? :enlight:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10026
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] Select Lines by Length (Updated March 9th, 2009)

Postby thomthom » Tue Mar 24, 2009 10:15 am

Pilou wrote:If I want all lines of a selection? (not the faces ! )
Can you add something for that? :enlight:

viewtopic.php?f=180&t=14975
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17553
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby Pilou » Tue Mar 24, 2009 11:09 am

Thx I had another one by Matt666
Selection manager
I will try yours also! :enlight:

Yours seems more cozy! :fro:
Even it's a toy! ;) :D
Adopted! 8-)

But if Chris can make something like ">length wished" that will be terrific! :mrgreen:
Like >0
or
>0 & < 12
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10026
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] Select Lines by Length (Updated March 9th, 2009)

Postby Chris Fullmer » Tue Mar 24, 2009 4:11 pm

I might not get to it right away, but adding a selection length range would be easy enoug to do. Thanks for the suggestion.

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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] Select Lines by Length (Updated March 9th, 2009)

Postby Pilou » Tue Mar 24, 2009 5:19 pm

Cool! :enlight:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10026
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] Select Lines by Length (Updated March 9th, 2009)

Postby simon le bon » Tue Mar 31, 2009 12:11 pm

Heyhey! Chris,

Clever idea, wonderfull tool. Many thanks, just continue this way, cause we need such tools :thumb: :P :) :D simon
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby EarthMover » Sun May 10, 2009 5:56 pm

Chris,

Would it be possible to also have a script that would select faces all of the same surface area?
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby Chris Fullmer » Sun May 10, 2009 10:18 pm

Yeah, thats a good idea. I'll see if I can get that implemented. I have 2 others also in progress right now. Hopefully I'll get a chance to finish some of these up today. Thanks for the suggestion,

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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] Select Lines by Length (Updated March 9th, 2009)

Postby publied » Wed Jun 03, 2009 10:00 am

chris,
another very interesting plugin from you! nice job. thank you so much.
/paolo
publied
 
Posts: 40
Joined: Sat Apr 19, 2008 9:26 am
Location: Bolzano, South Tyrol, Italy
Name: Paolo

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby bagatelo » Wed Mar 10, 2010 12:56 pm

Very good plugin. Is possible to make plugin work only in selection?
User avatar
bagatelo
 
Posts: 243
Joined: Wed Apr 16, 2008 4:55 pm
Location: São José, Santa Catarina, Brasil
Name: Alex Henrique
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Intermediate

Re: [Plugin] Select Lines by Length (Updated March 9th, 2009)

Postby Chris Fullmer » Wed Mar 10, 2010 8:34 pm

I suppose I could. The idea would be to select geometry first, then run the plugin and then when you click, lines only get added if you have cliked on something that is selected? Is that what you mean?

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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] Select Lines by Length (Updated March 9th, 2009)

Postby bagatelo » Wed Mar 10, 2010 11:40 pm

Yes!!!
User avatar
bagatelo
 
Posts: 243
Joined: Wed Apr 16, 2008 4:55 pm
Location: São José, Santa Catarina, Brasil
Name: Alex Henrique
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: corvolux, dominikab, irwanwr, iwazz, JBJDesigns, kagrani, TIG and 13 guests