[Plugin] Stepped Extrude [Updated 20121106]

[Plugin] Stepped Extrude [Updated 20121106]

Postby rami_lpm » Mon Nov 05, 2012 2:10 pm

www.youtube.com Video from : www.youtube.com


This tool allows stepped push pull.
Pick one face, it gets extruded one step. Pick the next it gets extruded two steps, and so on.
You can change the step height by typing it right after selecting the tool.
It's useful when making stepped terrain models.

As requested here http://sketchucation.com/forums/viewtopic.php?f=323&t=48651

Now it handles contour lines as suggested by Chris.
Thanks to sdmitch for the code to handle the moving of lines.
1
Last edited by rami_lpm on Tue Nov 06, 2012 2:22 pm, edited 1 time in total.
User avatar
rami_lpm 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Stepped Extrude

Postby gilles » Mon Nov 05, 2012 3:19 pm

Well done, I like it.
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude

Postby JGA » Mon Nov 05, 2012 7:08 pm

Great idea, thanks (again).
0
Last edited by JGA on Tue Nov 06, 2012 2:29 pm, edited 1 time in total.
Regards,
JGA

JGA 
 

Re: [Plugin] Stepped Extrude

Postby pbacot » Mon Nov 05, 2012 7:20 pm

Yes, very good thanks!

In regards to Topo work as in the example--there is a CAD application that I used that would interpret the height of contours in plan by the user drawing a section line. Another idea to specify the relative heights.

What you have here might also be useful to model site steps (the kind people walk on) that are laid out in plan but too irregular for move-duplicate creation. Just as I needed yesterday...

Thanks again for the plugin work.
0
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude

Postby Chris Fullmer » Mon Nov 05, 2012 7:25 pm

Great tool idea. Does it work with lines? If not, could you adjust it to work with lines? The user would click on a line and the script would select all connected and move it vertically by 1 unit, then 2 units, 3, etc. Same idea, I just rarely make stepped models. I deal with topo lines only and then use the sandbox tools to turn them into a TIN. Thanks!

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] Stepped Extrude

Postby rami_lpm » Mon Nov 05, 2012 9:02 pm

pbacot wrote:there is a CAD application that I used that would interpret the height of contours in plan by the user drawing a section line. Another idea to specify the relative heights.

This sounds very complicated, I'll see what I can do.

Chris Fullmer wrote:Does it work with lines? If not, could you adjust it to work with lines? The user would click on a line and the script would select all connected and move it vertically by 1 unit, then 2 units, 3, etc.

No, it works only with faces. I think I can add that, it will take some time, though.

Thanks for trying it out.
0
User avatar
rami_lpm 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Stepped Extrude

Postby Chris Fullmer » Mon Nov 05, 2012 9:38 pm

No rush, it might be a nice feature to add if you feel like adding something. Thanks!
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] Stepped Extrude

Postby sdmitch » Tue Nov 06, 2012 3:02 am

rami_lpm wrote:[
Chris Fullmer wrote:Does it work with lines? If not, could you adjust it to work with lines? The user would click on a line and the script would select all connected and move it vertically by 1 unit, then 2 units, 3, etc.

No, it works only with faces. I think I can add that, it will take some time, though.

Thanks for trying it out.


rami, Add this code to the onLeftButtonDown def. It will handle the edges or curves.

Code: Select all
 best.pushpull dist,false
else
 best = ph.picked_edge
 unless best==nil
  @clickno += 1
  dist=@clickno*@step
  trans=Geom::Transformation.translation([0,0,dist])
  unless best.curve
   edges=best.all_connected
   verts=[];edges.each{|e| verts<<e.vertices}
   verts.flatten!; verts.uniq!
   verts.each{|v| Sketchup.active_model.entities.transform_entities(trans,v)}
  else
   Sketchup.active_model.entities.transform_entities(trans,best.curve)
  end
 end
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Stepped Extrude

Postby sumaster » Tue Nov 06, 2012 7:42 am

Thank you very much
0
Thank you,
SUmaster
User avatar
sumaster 
 

Re: [Plugin] Stepped Extrude

Postby boofredlay » Tue Nov 06, 2012 7:59 am

Nice. A much needed tool.
0
User avatar
boofredlay 
Global Moderator
 

Re: [Plugin] Stepped Extrude

Postby rami_lpm » Tue Nov 06, 2012 2:25 pm

It's updated. Thanks for that snippet.
0
User avatar
rami_lpm 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby srx » Tue Nov 06, 2012 2:38 pm

Thanks! It could be useful for making stairs also... or SU logo :)
0
User avatar
srx 
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Ben Ritter » Tue Nov 13, 2012 11:04 pm

Thank you Ramiro.
0

Ben Ritter 
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Pilou » Wed Nov 14, 2012 1:29 am

Cool! :fro:
Works fine with the Multiple Offset by Sdmitch ;)

sol.jpg
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Pilou » Thu Nov 15, 2012 11:49 am

Have you the same but only for lines ? ( with no PushPull of faces )
Like this
only lines are moving with Stepped Extrude , and there is no creation of faces !

like a creation of levels of terrain for example :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby pbacot » Thu Nov 15, 2012 4:21 pm

Pilou, The first post claims this is possible. I haven't tried. Peter
0
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Pilou » Thu Nov 15, 2012 5:24 pm

No it's draw also a face when you click a line like when you click on a face! ;)

I just want stepp the lines ! :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby sumaster » Mon Dec 10, 2012 6:44 pm

Hi rami_lpm AND sdmitch,

a Need of previous history Amount/Distance . . . .

means create 2 face and use this tool and 1st face extrude 1 m. and 2nd face extrude the same amount . . .

now its not working . . . . .

thanks . . . .
0
Thank you,
SUmaster
User avatar
sumaster 
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby bsintzel » Mon Jan 07, 2013 3:12 am

Simple, functional, useful and free...what more can one ask for. Well done :thumb:
0
I've taken obfuscating to a whole new level!
User avatar
bsintzel 
Premium Member
Premium Member
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby rv1974 » Mon Jan 07, 2013 10:15 am

The perfect fuse of simplicity and effectiveness.
Salute to the authors.
0

rv1974 
 

Re: [Plugin] Stepped Extrude

Postby icepam » Fri Jan 25, 2013 7:48 pm

Thanks for a much useful plugin. I had coded something similar in AutoLisp a few years ago to do this in Autocad, precisely for stairs and contours.

rami_lpm wrote:
pbacot wrote:... interpret the height of contours in plan by the user drawing a section line.

This sounds very complicated, I'll see what I can do.


I think this could be simpler than it sounds, maybe one of the forum's rubymasters could help out with the code. Here's how i would imagine it:
Method 1, should work with lines:
-User draws a line across the contours he wishes to raise and sets H=riser height.
-Plugin figures if it's a generally horizontal or vertical line (is that necessary?)
-Plugin finds all intersection points and makes an array ordered based on their X (or Y?) coordinate
-Plugin traverses array raising each line by H x its index in the array.

Method 2, perhaps this is the solution for faces?
-User selects all faces that need to be raised (by window or select all or whatever... if one by one, it's just the current method)
-User draws a line L through all said faces
-Plugin filters out non-faces from selection and makes an array as above, ordered by X or Y coordinate of mid-point of segment created by intersection between line L and each face.
-Plugin traverses and raises as above.

Hope this makes sense!
0

icepam 
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Pilou » Thu Feb 14, 2013 4:51 pm

No possibility to add the other options? As asked in my old request here ;)

Now we have a =a + x ;)

0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby caronte01 » Mon Feb 18, 2013 4:25 am

Great simple tool, perfect for stairs. Will try it as soon as I have a chance!

Thanks!

santiago
0

caronte01 
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby rami_lpm » Tue Apr 16, 2013 1:58 pm

icepam: I'm a bit math-challenged, so it will take some time.
pilou: It really should work with lines. About your request, what does the 'list' option do?
Thanks everyone for the comments
0
User avatar
rami_lpm 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby Pilou » Tue Apr 16, 2013 3:15 pm

what does the 'list' option do?


Like in this Multiple Offsets by Sdmitch ;)

You enter a list in a dialog box like 5,17,22,10 etc...
At each click the PushPush take a nomber in the list
so first click is 5
second click 17
etc...
and then after the 10 that will be the 5
etc...

PS You can also have a random option one in a list given or out of a list (Mini-maxi)! ;)

here the list was 10,20,30,50* (the * indicated the last number)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Stepped Extrude [Updated 20121106]

Postby qingtong » Tue Jan 14, 2014 3:34 am

thanks very much!
0
User avatar
qingtong 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Box, JQL, pippolino, tyreal2004 and 12 guests

Visit our sponsors: