sketchucation logo sketchucation
    • Login
    šŸ›£ļø Road Profile Builder | Generate roads, curbs and pavements easily Download

    PushPull question

    Scheduled Pinned Locked Moved Plugins
    12 Posts 7 Posters 4.3k Views 7 Watching
    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.
    • sdmitchS Offline
      sdmitch
      last edited by

      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

        ...mmm...thanks sdmitch

        ,))),

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          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

            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

              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
              • TIGT Offline
                TIG Moderator
                last edited by

                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

                  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

                    @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

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

                      ,))),

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @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
                        • rami_lpmR Offline
                          rami_lpm
                          last edited by

                          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
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement