SketchUcation Plugin Store

 

 

[Plugin] ExtendTool v0.2 (update 20090708)

[Plugin] ExtendTool v0.2 (update 20090708)

Postby Matt666 » Tue Jun 16, 2009 3:11 pm

Hi all!
Here is a plugin that extend edge you pointed on. It tries to work like acad Extend tool...
Usage:
  • First select edges or faces that will be limits of the extended edges. If you don't select anything, script will select all the model as the limit.
  • Point on each edge you want to extend. Be careful of side of the edge pointed. It determinates sense of the extension.
I hope it works with Win and Mac version. A cursor replaces standard SU cursor.

This script may contain bugs... No. IT contains bugs! Please be patient if you find a bug, I will do my best to update the script.
All suggestions/improvments are welcome!
;)

[EDIT] 20090708 - V0.2
New extended edges broke edges of the limits. So limits changed while script worked.
Please, register (free) to access all the attachments on the forums.
Last edited by Matt666 on Wed Jul 08, 2009 7:31 am, edited 2 times in total.
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby rv1974 » Tue Jun 16, 2009 3:42 pm

A very good intention Matt!
Make it a perfect example of the reverse engenering :P :
To select boundary at the beginning and then with window select a bunch of lines to be extended.
Maybe trim with shift could be added?
P.S. And what about extend faces?
rv1974
 
Posts: 521
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] ExtendTool v0.1 (unofficial version!)

Postby Matt666 » Wed Jun 17, 2009 7:03 am

Hi rv1974!
To select boundary at the beginning and then with window select a bunch of lines to be extended.
Maybe trim with shift could be added?
With this method you can't select side of edge you want to extend... That's why I copied Autocad method. A possible improvment would be to select side of multiple edges by a path, like acad tool...
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby rv1974 » Wed Jun 17, 2009 7:41 am

2009-06-17_0937.swf

I mean something like this.
P.S. BTW how to embed video in the post?
Please, register (free) to access all the attachments on the forums.
rv1974
 
Posts: 521
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] ExtendTool v0.1 (unofficial version!)

Postby majid » Thu Jun 25, 2009 8:48 pm

it doesn't work for me :(
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Pilou » Thu Jun 25, 2009 10:03 pm

I must try it ;)
Edit: works fine for me! :fro: (PC)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10048
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] ExtendTool v0.1 (unofficial version!)

Postby Matt666 » Fri Jun 26, 2009 7:00 am

majid wrote:it doesn't work for me

Of course lines must coplanar. That's strange it doesn't work for you...
Can you show me errors in the ruby console please?
Thank you!

Nice to read that Pilou! :D
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby majid » Fri Jun 26, 2009 7:42 am

I imported a cad file , and as usuall it had lots of stray lines...so I desided to use the plugin, but nothing happend :(...
here is my plugin folder view :
Please, register (free) to access all the attachments on the forums.
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Matt666 » Fri Jun 26, 2009 8:47 am

Thank you for your answer.
Sorry, but... I don't see any ExtendTool folder and ExtendTool.rb in your plugin folder...
Can you try to download it again and to unzip it directly into plugins folder, please?
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Chris Fullmer » Fri Jun 26, 2009 8:47 am

Majid, the plugin isn't in there. Where did you put it?

Try downloading and installing again.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6690
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] ExtendTool v0.1 (unofficial version!)

Postby majid » Fri Jun 26, 2009 10:10 am

yes I see :roflmao: , when it didn't worked for me , I deleted it ... :), then I thought that maybe other plugins interfer it , so i shared the plugins folder picture..
also all lines are coplanar , and i repaired the inserted cad file by hand (149 trim extend needed ... :) as the autocad is going to be more fuzzy!!!!)
ok ... I am thinking that if we could have a better (smarter) cad import plugin? bkz when we import cad files , then su convertes circle to 24 sided su native cirles , and then there would be a gap between the circle and rest of the model... so maybe we could resolve this with a ruby cad importer!!! :?: :idea:
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Matt666 » Fri Jun 26, 2009 10:58 am

majid,
this plugin cannot do what you describe... Perhaps try ExtendCloseLines?
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Pilou » Fri Jun 26, 2009 11:20 am

then su convertes circle to 24 sided su native cirles


Tig has made something for that!
I must refind that ;)
Found! changearcsegments ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10048
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] ExtendTool v0.1 (unofficial version!)

Postby EarthMover » Fri Jun 26, 2009 1:09 pm

Matt,

It works well when I have a face selected, however when I select a coplanar edge to extend to, I get a "no limit found" error in the ruby console. Any ideas?
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] ExtendTool v0.1 (unofficial version!)

Postby JClements » Sat Jun 27, 2009 6:19 pm

Hi Matt:

Works well for me. I like the simple UI.


Could a similar script be developed to extend (move) a vertex (which may or may not be part of a face)?

How it might work: initiate script, pick (click) on the anchoring endpoint or guidepoint, then click on the vertex you want to move. It would basically be the same as manually doing a move-and-drag or alt-move-and-drag function, but inferencing to anything other than end-point or guide-points would be blocked.

This would be helpful when trying to move a vertex a very small distance in an area with lots of geometry.
John
Illustrator
Beaverton, Oregon
User avatar
JClements
Premium Member
Premium Member
 
Posts: 773
Joined: Wed Nov 14, 2007 4:32 pm
Location: Portland/Beaverton, Oregon
Name: JClements
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: illustration, cartoons
Level of SketchUp: Intermediate

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Matt666 » Tue Jun 30, 2009 5:31 pm

EarthMover,
Thank you for testing it!
Can you post tested file, please? Can you show me "limit" lines or faces, and desired edges to extend?
I have no problem here. Oh yes I had a problem, but I corrected the plugin. Update will come soon.

JClements,
Thank you for the comment!
I will "investigate" to find if I can do this plugin... For the moment I think it's out of my ruby level! :lol:
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.1 (unofficial version!)

Postby Chris Fullmer » Tue Jul 07, 2009 7:26 pm

Hey Matt, great plugin, thanks! I've just started a new project and I am putting this to good use. Thanks! Also, I edited my copy to make it so that holding shift will delete the geometry instead of extending it. I have lots of lines that are just a little too long. So instead of extending them, I want to "trim" them, like in autocad. So that little tiny bit of functionality is very helpful.

So a HUGE thanks, this is quite useful,

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6690
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] ExtendTool v0.1 (unofficial version!)

Postby utiler » Wed Jul 08, 2009 6:37 am

Hey Chris, thats a great idea!!! wouldn't mind seeing that incorporated into matt's plugin.... :thumb:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1927
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] ExtendTool v0.2 (update 20090708)

Postby Matt666 » Wed Jul 08, 2009 7:37 am

Hey Matt, great plugin, thanks!
Glad to help you, Chris! :)
I updated code today. If you want I can update the code again with your improvment? Do you agree? Can you show us your bit of code?
;)
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby mitcorb » Thu Jul 09, 2009 1:25 pm

I had difficulty with the plugin.
In the drop down menu I see Selection with a fly out trigger that doesn't fly out to show Extend Edges. I posted in Thomthom's thread on Selection Toys, thinking that Selection was part of his suite. I will try to unload and reload to see if it works better.
I have a mild concern that other recently downloaded tools may be interfering--not sure.
Best Regards,
mitcorb
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3404
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby stefx » Mon May 10, 2010 8:01 pm

Ehi,
I am using Mac and it sounds that it doesn't work...
:(

Any another feedback?

Stef.
stefx
 
Posts: 48
Joined: Wed Apr 23, 2008 11:01 am

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby TIG » Mon May 10, 2010 8:02 pm

Try my 2D Tools Fillet or Adjust tools..........
TIG
User avatar
TIG
Global Moderator
 
Posts: 13980
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby mirale999 » Mon Sep 12, 2011 6:04 am

mitcorb say:"In the drop down menu I see Selection with a fly out trigger that doesn't fly out to show Extend Edges."
I have the some problem but I can use the tool, the submenu is like this picture:
2011-09-12_130303.png
Please, register (free) to access all the attachments on the forums.
paranoia is a higher form of awareness...
mirale999
 
Posts: 24
Joined: Wed Oct 28, 2009 4:14 pm

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby Matt666 » Mon Sep 12, 2011 8:43 am

Ah sorry, try to delete this block at the beginning of the code:
Code: Select all
if !file_loaded?('TtMn_selection') then
    if $submenu
        organizer 
= $submenu
    else
        organizer 
= UI.menu('Plugins')
    end
    $TtMn_selection_plugins_submenu 
= organizer.add_submenu('Selection')
    UI.add_context_menu_handler do |menu|
        $TtMn_selection_contextual_submenu=menu.add_submenu('Selection')
    end
    file_loaded
('TtMn_selection')
end

:?
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] ExtendTool v0.2 (update 20090708)

Postby mitcorb » Mon Sep 12, 2011 12:51 pm

Hi, Matt:
Is this block of code intended as a disambiguation, or differentiation of the two Selection tools? Or was it intended as way to allow coexistence?
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3404
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

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: ksprmx, Tasman and 9 guests