sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [REQUEST] Directly Replace One Compenent with Another

    Scheduled Pinned Locked Moved Plugins
    7 Posts 5 Posters 988 Views 5 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.
    • JClementsJ Offline
      JClements
      last edited by

      Let's say I have Component A,option1and I want to replace it with Component A, Option2.

      One way to accomplish this is to save Component A, Option2 as a separate file and then select Component A, Option1, right-click and pick Reload and choose ComponentA, Option2 from the directory list. Then ALL occurences are replaced.

      But, what if I want to replace just ONE occurance? What about a selection of more than one of the same component? Hypothetically, a selection of different components or even groups?

      Minimally, it would be nice to be able to right-click on a component and from the context menu, select "REPLACE", and then: A. choose directly from the model's components dialog or B. simply click on another component on screen and press enter.

      For more complex replacements as listed above, what about a search and replace function script... perhaps utilizing the Outliner?

      If the user is careful in how they build their components and assign their respective axes/origins, then models, for example, of house framing or piping could easily be modified.

      Regards, John

      John | Illustrator | Beaverton, Oregon

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

        Make Unique before you Replace?

        @jclements said:

        select "REPLACE", and then: A. choose directly from the model's components dialog or B. simply click on another component on screen and press enter.

        Mind you, I'd been meaning to make a component-sampler - similar to the material sampler you get when you press Alt with the Paint Bucket.

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

        1 Reply Last reply Reply Quote 0
        • daikuD Offline
          daiku
          last edited by

          Do you need to do this from within a Ruby script? Otherwise, just select all the instances you want to replace, and then in the component window, right click on the new component, and choose "replace selected". CB.

          Clark Bremer
          http://www.northernlightstimberframing.com

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by

            You also have this excellent script... ApplyTo, by Rick Wilson...

            Frenglish at its best !
            My scripts

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

              @jclements said:

              ThomThom, if Rick wouldn't mind perhaps an "Eyedropper" version could be developed that works similar to the Materials Editor dialog:

              a) You make your selection, right-click, choose "pick a replacement component", an eyedropper appears, click on another component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail) and the selection is replaced.

              That's pretty much how I imagined the script would be.

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

              1 Reply Last reply Reply Quote 0
              • JClementsJ Offline
                JClements
                last edited by

                Daiku >> Thanks. I never noticed that option before.

                Matt666 >> Thanks for pointing the script out, I didn't realize what it actually did. (I changed the menu name in my copy).

                ThomThom, if Rick wouldn't mind perhaps an "Eyedropper" version could be developed that works similar to the Materials Editor dialog:

                a) You make your selection, right-click, choose "pick a replacement component", an eyedropper appears, click on another component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail) and the selection is replaced.

                b) If you don't have a selection, right-click on any entity, choose "pick a replacement component", eyedropper cursor appears, click on a component (if you hover over another component without clicking then that component's name appears next to the eyedropper or perhaps a thumbnail), cursor changes to a paint-bucket, "pour" the replacement component onto another component(s), press any key to end.

                Perhaps replacing a component with a group or vise versa would be useful too? Toggle through the 3 modes (comp to comp, comp to group, or group to comp) via the Tab key.

                John | Illustrator | Beaverton, Oregon

                1 Reply Last reply Reply Quote 0
                • F Offline
                  fitz101
                  last edited by

                  I don't know if this is the right place to request for this. But please can someone send me the s4u-to-component v3.0.0 or v4? Or any free sketchup plugin that has the component replace option. Thanks very much

                  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