sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Paste In Place a Copy to Current (Active) Layer

    Scheduled Pinned Locked Moved Plugins
    5 Posts 3 Posters 753 Views 3 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 JClements

      I was wondering if someone would be willing to create a script that would Paste In Place a copy of a selection to the Current (Active) Layer.

      Pasting in place geometry over itself in order to put the copy onto a another layer can be fiddly.

      Regards, John

      John | Illustrator | Beaverton, Oregon

      1 Reply Last reply Reply Quote 0
      • D Offline
        DOD3R
        last edited by

        +1
        Yes please that would be great.
        I would like it even as a deafult beahvior of the sketch up to paste geometry on active layer.
        Or make a switch for it so we can make this feature work for every scenario.

        1 Reply Last reply Reply Quote 0
        • sdmitchS Offline
          sdmitch
          last edited by

          It appears that Sketchup wont allow two entities to occupy the same location even if they are on separate levels. I think you would have to group them first. Something like this

          mod = Sketchup.active_model
          ent = mod.active_entities
          sel = mod.selection
          org = ent.add_group sel; org.name = 'org'; org.layer = 'Layer0'
          new = org.copy; new.name = 'new'; new.layer = mod.active_layer
          new.entities.each{|e| e.layer = mod.active_layer}
          

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

          http://sdmitch.blogspot.com/

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

            [Update]
            see posting below

            John | Illustrator | Beaverton, Oregon

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

              The attached will copy and paste in place a group or component to another layer.

              It will appear in the Edit menu as "Paste In Place Copy of Group/Component to Layer".
              Paste In Place A Copy.rb

              Select a group or component and run the script. You will then be asked to choose a layer to paste the copy. The current layer will be initially displayed in the list.

              Thanks Sdmitch.

              Here is a test file to experiment with (SU2015 format).


              paste in place a copy, test.skp

              John | Illustrator | Beaverton, Oregon

              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