• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

PushPull question

Scheduled Pinned Locked Moved Plugins
12 Posts 7 Posters 4.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JuanV.Soler
    last edited by 26 Oct 2012, 12:45

    I want to pushpull all these faces of a contoured terrain at an exact z-distance of 1.05m in between them.
    The total height is 105m.
    Doing it one by one is too much.
    I was wondering if there is a plugin that might do that.
    I saw the random pushpull from TIGand thought maybe it could be done.
    Or already exists and I am unawared of.
    Thanks for listening.


    PUSH PULL EXACT.jpg


    2 PUSH PULL EXACT.jpg


    3 PUSH PULL EXACT.jpg

    ,))),

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdmitch
      last edited by 26 Oct 2012, 14:04

      Doubtful, since it would be difficult if not imposible to identify the order of the contours/faces. At best, an interactive plugin, that would accept a starting elevation and increment, could do the pushpull as you click on each successive face.

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • J Offline
        JuanV.Soler
        last edited by 26 Oct 2012, 14:07

        ...mmm...thanks sdmitch

        ,))),

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 26 Oct 2012, 14:17

          How can a script 'know' which faces want which heights?

          This is a part manual method that avoids having to write an entire Tool where you pick by incrementing values.
          It minimizes the picking etc needed...
          Select all of the faces to be processed.
          Copy then Paste the one-liner [below] into the Ruby Console + <enter>
          ALL selected faces are Pushpulled by 1.05.m.
          Selection tool [spacebar], hold Ctrl+Shift and click the face[s] that are now at the desired height, so they are removed from the selection.
          Repeat the Paste with the same one-liner into the Ruby Console + <enter>
          Currently selected faces are Pushpulled by another 1.05.m.
          Repeat till done...
          This must be done ~100 times in all !

          d=1.05.m;m=Sketchup.active_model;m.start_operation('p');s=m.selection;z=0;s.each{|e|(z=e.bounds.center.z+d;e.pushpull(d))if e.is_a?(Sketchup;;Face)};m.active_entities.each{|e|s.add(e)if e.is_a?(Sketchup;;Face)&& e.bounds.center.z==z};m.commit_operation
          

          It is one step undo-able...
          You could make a toolbar button or a menu item from it and a shortcut key to avoid having to paste into the Console...

          TIG

          1 Reply Last reply Reply Quote 0
          • J Offline
            JuanV.Soler
            last edited by 26 Oct 2012, 14:36

            no idea TIG
            I just thought that if you could make a random push for a lot of faces it could be possible to change the random and establish the exact distance to push.
            but,..., so far so good.
            Thanks for answering.

            ,))),

            1 Reply Last reply Reply Quote 0
            • F Offline
              flyashy
              last edited by 28 Oct 2012, 13:56

              One of the things I do when I have to do a lot of these stepped pushpulls is to make a visual reference (lines, points or anything that is stacked vertically).
              That saves me the hassle of typing the values each time and just keep push pulling one by one. Just a method.
              Cheers!

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 28 Oct 2012, 14:43

                Of course you don't have to type a PushPull value every time. a double click on a face while in PushPull will repeat the last used distance, but I accept that when the steps get more than a few multiple clicking can become tedious, so the idea of making some vertically spaced lines/guides can help a lot...

                TIG

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wyatt
                  last edited by 28 Oct 2012, 15:00

                  Juan, do you have a CAD program? It might be easier to set the elevations in CAD, export back to SU, and use the Sandbox tools. Unless of course, you actually want the stepped geometry.

                  TIG, would it be possible for a script to run based on the order of the selection. For example, the script would start by asking for a contour interval, n. Then the user would select the lines, and the script would apply n1, n2, etc. based on the order that the lines were selected. There would be a problem if multiple lines needed the same elevation so the user may need to run the script more than once for a given set of contours.

                  As an alternative, is there a way to create a dialog box where the z could be user defined, similar to CAD? Ideally, this should be integrated into the entity info box by the Trimble SketchUp team.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JuanV.Soler
                    last edited by 28 Oct 2012, 16:08

                    @flyashy said:

                    One of the things I do when I have to do a lot of these stepped pushpulls is to make a visual reference (lines, points or anything that is stacked vertically).
                    That saves me the hassle of typing the values each time and just keep push pulling one by one. Just a method.
                    Cheers!
                    Yes I have been doing that too .

                    @unknownuser said:

                    Juan,... Unless of course, you actually want the stepped geometry.

                    Yes I do sometimes 😉

                    @sdmitch said:

                    Doubtful, since it would be difficult if not imposible to identify the order of the contours/faces. ** At best, an interactive plugin, that would accept a starting elevation and increment, could do the pushpull as you click on each successive face.**

                    sdmitch kindly sent me a script that does it and it is a time_saver ¡
                    I do hope he posts it public
                    Cheers

                    ,))),

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JuanV.Soler
                      last edited by 2 Nov 2012, 20:50

                      Ok thanks rami_lpm
                      getting easier to achieve the stepped geometry I am looking for .

                      ,))),

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 3 Nov 2012, 09:12

                        @rami_lpm said:

                        Here's a plugin (another?) that does what you asked.

                        Please posts plugins in their own separate thread - they otherwise get lost when burried deep into thread like this.

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rami_lpm
                          last edited by 5 Nov 2012, 13:18

                          Here's a plugin (another?) that does what you asked.

                          Moved the plugin Stepped Extrude to it's own post.
                          http://sketchucation.com/forums/viewtopic.php?f=323&t=48812

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          1 / 1
                          • First post
                            4/12
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement