[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.
1
Last edited by Matt666 on Wed Jul 08, 2009 7:31 am, edited 2 times in total.
Frenglish at its best !
My scripts

Matt666 
 

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

rv1974 
 

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...
0
Frenglish at its best !
My scripts

Matt666 
 

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

rv1974 
 

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

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

it doesn't work for me :(
0
User avatar
majid 
Top SketchUcator
 

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)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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
0
Frenglish at its best !
My scripts

Matt666 
 

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 :
0
User avatar
majid 
Top SketchUcator
 

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?
0
Frenglish at its best !
My scripts

Matt666 
 

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.
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] 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:
0
User avatar
majid 
Top SketchUcator
 

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?
1
Frenglish at its best !
My scripts

Matt666 
 

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 ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

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?
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

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.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

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:
0
Frenglish at its best !
My scripts

Matt666 
 

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

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?
;)
0
Frenglish at its best !
My scripts

Matt666 
 

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
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

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

stefx 
 

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

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

Try my 2D Tools Fillet or Adjust tools..........
0
TIG
User avatar
TIG 
Global Moderator
 

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
0
paranoia is a higher form of awareness...

mirale999 
 

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

:?
0
Frenglish at its best !
My scripts

Matt666 
 

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?
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

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

Postby poru » Thu Sep 05, 2013 12:09 am

The plugin doesn't work when edit a group, you need to explode the group extend and regroup...
0

poru 
 

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

Postby Dave R » Thu Sep 05, 2013 1:16 am

Yes, it does work when editing a group. There is no need to explode the group first.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

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

Postby TIG » Thu Sep 05, 2013 10:28 am

It works on a selection.
So therefore it only works on lines that are all in the same 'context'.
Editing a group allows you to select lines within the group.
BUT if you want to process lines that are in the group AND lines outside it then you cannot, because you can't select lines with both contexts at once.
Then you need to explode the group so all lines are selectable in the common context.
Alternatively, select the lines you want to use outside of the group, Edit+Copy, edit the group and Edit>Paste_In_Place.
Then those lines are duplicated inside the group; select them and other lines and do the processing.
If necessary delete the unwanted duplicated lines.
Alertnatively-ly, Edit>Cut the lines and Edit>Paste_In_Place into the group's context etc...
It depends what final outcome you want...
1
TIG
User avatar
TIG 
Global Moderator
 

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

Postby lothian » Wed Jul 01, 2015 3:25 pm

m'eh...
the tool needs work... its interface, capability, and intuitive-use are lacking (expected for a "zero-dot" rev).

add the ability to extend arcs as well.
1

lothian 
 

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

Postby Dave R » Wed Jul 01, 2015 3:29 pm

Why don't you write a better version, then?
-1
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: HSBBSB, owl99 and 11 guests

Visit our sponsors: