sketchucation logo sketchucation
    • Login
    💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering Download Trial

    Copy Array Along Path tool...have a look.

    Scheduled Pinned Locked Moved Developers' Forum
    46 Posts 15 Posters 118.0k 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.
    • simon le bonS
      simon le bon
      last edited by

      Hi Rocky

      Please take it and make it at your convenience 😉
      (click the pic for Skp)

      http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/th_CopyArray013th.jpg
      ../sim

      1 Reply Last reply Reply Quote 0
      • simon le bonS
        simon le bon
        last edited by

        Playing with the process..
        (easy and fast)


        http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray014th.jpg


        http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray015th-1.jpg

        (two components made with the same 60° rotated)
        *s

        1 Reply Last reply Reply Quote 0
        • Bob JamesB
          Bob James
          last edited by

          @simon le bon said:

          (easy and fast)

          Is your "easy and fast" the same eight-step process in your previous post or have you come up with a real "easy and fast"?

          i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

          1 Reply Last reply Reply Quote 0
          • P
            pav_3j
            last edited by

            simon you are a master of getting the best results using methods most don't think of!

            i'm still a little confused by the process, but i'll get there!

            pav

            Just won the 'Who is Least Competitive Championships' where trying to win will make you lose. Trying to lose makes you win which makes you lose. Not trying at all makes you lose which makes you win which makes you lose.

            1 Reply Last reply Reply Quote 0
            • P
              pav_3j
              last edited by

              ah i get it now simon, thank you very much for the written explaination.

              i think one thing you may have missed out (as i understand it) is that the amount of steps you have to take with the 2 faces and a path tool, must equal the amount you have segmented the curve by, or the faces will not end up on the end point of each line.
              correct?

              thank you again.

              pav

              Just won the 'Who is Least Competitive Championships' where trying to win will make you lose. Trying to lose makes you win which makes you lose. Not trying at all makes you lose which makes you win which makes you lose.

              1 Reply Last reply Reply Quote 0
              • C
                Click Draw
                last edited by

                Very clever Simon....I'll be trying this for sure!

                Thanks,

                Jeff

                PS: I wonder if it would be possible to have a ruby called "Replace segment with Component"...nah....I doubt that could be written 😉

                Have I mentioned how much of a laugh I get out of some of the Signatures on here!

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC
                  Chris Fullmer
                  last edited by

                  Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component? Something about that sounds familiar...

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • C
                    Click Draw
                    last edited by

                    I sure hope someone is working on something like that. That would be an awesome ruby. What you could model and the time saved would be great! My eyes will be glued to this thread...
                    Cheers....

                    Have I mentioned how much of a laugh I get out of some of the Signatures on here!

                    1 Reply Last reply Reply Quote 0
                    • simon le bonS
                      simon le bon
                      last edited by

                      Hi Bob and Pav,

                      I'm confused because in following my own idea I was sure to have described the process in its simplicity!! Your two comments tell enough I was wrong.

                      I am going to try to explain better , "pardon pour mon anglais".

                      I)My main idea is that we need to prepare the curve we intend to be the path along which we want to copy our elements. Because what we need is a curve made of
                      -a)an exact number of segments
                      or
                      -b)a curve divided by segments of a precise length.

                      1)If we make our "path" using arc tool or/and line tool or/and bezier spline we need to make it first a "clean curve". This is made by the help of "Weld".

                      2)Once this is accomplish, we are going to convert this curve as a well wanted segmented polyline. this is made with underknown features which go with "BezierSpline" . When you select the curve, you can choose by right-clic context menu 😆 Convert to: Polyline Divider (if you wish to divide your curve by segments of exact length) or Polyline Segmentor (if you want to divide this curve by a specific number of equals segments.)

                      II)My second idea is to use "2Faces + Path" plugin in an unusual way. This plug is first intending to drive a transformation from a face to another one. My idea is to use it with no transformation! the first and the last face are the same! So this face is going to be dispatched in one clic all along the path in between the segments.
                      Re: to simplify the process I use "Perpendicular Face tools" to put in place with a clic those first and last faces, but we can do without it. (in particular when we want to use a complex face)

                      III)My third idea is to use "Components onto Faces" to replace those faces by the component I want. One more time in just a clic and, as the faces remain selected, I can delete them with one push on "Del" .
                      Re: if I want to dispatch various components like in the case of my chain, I copy the same number of the path+faces and I delete by hand the faces I don't want to follow the component. And I assemble them at the end.
                      Re: the main tip is to play foxy with "modify axes" inside components.

                      In summary:

                      1)drawing the curve
                      2)make it clean (weld)
                      3)make it a divided polyline (BezierSpline: Polyline Divider or Segmentor)
                      4)put the first an last face (Perpendicular face tools)
                      5)put a face at each segment intersection (2Faces + Path)
                      6)replace faces by components.

                      (I have some others ideas to develop the process, I shall tell latter 😉 )

                      simon.

                      1 Reply Last reply Reply Quote 0
                      • Rich O BrienR
                        Rich O Brien Moderator
                        last edited by

                        @chris fullmer said:

                        Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component? Something about that sounds familiar...

                        Chris

                        Hi Chris,

                        This "Replace with Component" idea is extremely exciting. Do you think Fredo's 'GhostComp' could hold some clues on implementing this? I know zero about Ruby Scripting but use Fredo's alot to help keep things running smoothly.

                        I realise it needs a component to create various versions of that component and hide the original. But could this be reversed to reference a component from a simple line?

                        Download the free D'oh Book for SketchUp

                        1 Reply Last reply Reply Quote 0
                        • pilouP
                          pilou
                          last edited by

                          @unknownuser said:

                          a ruby called "Replace segment with Component"

                          If your segment is a component you don't need a ruby 😉
                          I believe exist a ruby that transform a selection of elements in Components 😉
                          So select your elements (here segments)
                          transform them in components
                          Replace your component by any other component you want
                          Et voila 😎

                          Frenchy Pilou
                          Is beautiful that please without concept!
                          My Little site :)

                          1 Reply Last reply Reply Quote 0
                          • simon le bonS
                            simon le bon
                            last edited by

                            some few more details of explanation:

                            When I need
                            @unknownuser said:

                            -b)a curve divided by segments of a precise length.
                            . For I have to dispatch elements with a definite length along the path, it is going to remain an under sized segment from "Polyline Division". I delete this extra one before go further.

                            When I use "Perpendicular Face Tools" to put a face at each end of the curve, those faces are grouped. I ungroupe them in order to make them as available faces with "2Faces + Path".

                            (
                            @pav_3j said:

                            ah i get it now simon, thank you very much for the written explaination.
                            pav
                            thank you pav)

                            @pav_3j said:

                            i think one thing you may have missed out (as i understand it) is that the amount of steps you have to take with the 2 faces and a path tool, must equal the amount you have segmented the curve by, or the faces will not end up on the end point of each line.
                            correct?

                            "2Faces + Path" dispatch automatically the faces at each intersection in one pass. This is the very good point!!
                            It dispatches exactly (n+1) faces: a face at each intersection + a face at two endpoints of the curve.

                            So we have to delete the two previous faces we have put to initialize "2Faces + Path" process.

                            important remark: "Perpendicular Face Tools" and "2Faces + Path" doing the same, are dispatching the faces oriented at the mid angle between each two segments, and in a perpendicular angle for end lines..

                            another very interesting feature is the ability of this plug to dispatch faces as they are aligned to path or not aligned to path. I will show in another post how it can be interesting to mix invariant oriented elements with elements following the path like in a barrier, a suspension bridge...

                            http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray016th.jpg


                            http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray017th.jpg

                            (
                            @click draw said:

                            Very clever Simon....I'll be trying this for sure!
                            thank you man! 😉 )

                            @click draw said:

                            PS: I wonder if it would be possible to have a ruby called "Replace segment with Component"...nah....I doubt that could be written 😉

                            @chris fullmer said:

                            Was TIG working on something that would replace a single line with a component and use the line scale and orientation to determine the scale and orientation of the component?

                            In this case I think that orienting a face is an easiest way than orienting a line !?

                            *simon

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

                              Should try that with Remus' catenary curve...

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

                              1 Reply Last reply Reply Quote 0
                              • Bob JamesB
                                Bob James
                                last edited by

                                Thank you Simon: I can really understand the process now.

                                However, you and I have a different definition of "fast and easy". 😆

                                i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                1 Reply Last reply Reply Quote 0
                                • simon le bonS
                                  simon le bon
                                  last edited by

                                  @thomthom said:

                                  Should try that with Remus' catenary curve...

                                  [plugin]Simple Catenary Curve
                                  ../ this is done.
                                  (I will explain latter-- 'm tired)

                                  http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray018th.jpg


                                  http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray019th.jpg

                                  Have a good night SCF fellows *s

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Click Draw
                                    last edited by

                                    Anyone care to figure out what I am doing wrong. Not quite sure the proper setting for the axis on the component...See attached.

                                    Thanks,

                                    Jeff


                                    segment_component.jpg


                                    segment_component.skp

                                    Have I mentioned how much of a laugh I get out of some of the Signatures on here!

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Click Draw
                                      last edited by

                                      That is great! I believe I understand. Basically, position the axis in the center so that the front and back end pivot at the same angle. I assume you just have the adjust the first and last component so they line up properly? Thanks again. I'll try it again. Merci Simon!

                                      Cheers,

                                      Jeff

                                      Have I mentioned how much of a laugh I get out of some of the Signatures on here!

                                      1 Reply Last reply Reply Quote 0
                                      • Chris FullmerC
                                        Chris Fullmer
                                        last edited by

                                        And drawing inspiration from this thread, I just wrote a quick little script called component stringer. You can download it here:

                                        http://forums.sketchucation.com/viewtopic.php?f=180&t=23616

                                        It does essentially what Simon is showing.

                                        Chris

                                        Lately you've been tan, suspicious for the winter.
                                        All my Plugins I've written

                                        1 Reply Last reply Reply Quote 0
                                        • simon le bonS
                                          simon le bon
                                          last edited by

                                          Hi Jeff (big work had taken me out of reply)

                                          Thank you for trying. It is interesting because it shows me what I have to explain further (but it's a "WorkInProgress" also to me! 😆 ).

                                          The very basic theory to understand is that our components are not aligned to segments of the curve but are drop on faces (perpendicularly ).


                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray021th.jpg

                                          You have focused an important point: the first and last faces are perpendicular to first and last segment of the curve. So they represent a particular case. If we want a very precise result, we have to realign them with the same angle of the others 😉

                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray022th.jpg

                                          Second thing important to understand in doing this way: The process remain aproximativ . Not depending of the variations of the curve, the welding is "à peu près"!!

                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray023th.jpg


                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray024th.jpg

                                          Your component was empty from axes and significant Construction Points. I have added them.

                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray025th.jpg

                                          Your are right. The position of component's axes is absolutely fundamental. the good origin is pointed to be positioned on the apex of the triangles(?english~~)

                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray026th.jpg


                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray027th-1.jpg

                                          Your curve, your component, your chain!

                                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/CopyArray028th.jpg

                                          😉 simon.

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            Ecuadorian
                                            last edited by

                                            Thank you, Chris! 👍

                                            -Miguel Lescano
                                            Subscribe to my house plans YouTube channel! (30K+ subs)

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

                                            Advertisement