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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Deleting first instance of copied items

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    6 Posts 2 Posters 1.1k Views 2 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.
    • aarondietzenA Offline
      aarondietzen
      last edited by

      Hi all,

      Hopefully one of you smart people can help me out with an issue I am having.

      I have a dynamic component in which both a vertical and horizontal divider are created and repeat based on the user's input. I was able to put in the members without issue, but I was hoping there was a way to remove (or hide) the first copy.

      The member at the left and the bottom in the images are marked with a red arrow. I need to get them gone!

      Thanks in advance!


      Screen Shot 2013-07-08 at 2.45.23 PM.png


      Screen Shot 2013-07-08 at 2.45.38 PM.png

      "Imagination is more important than knowledge..."
      - Albert Einstein

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        Hi
        How about moving the position of the first instance and do one less copy.

        1 Reply Last reply Reply Quote 0
        • aarondietzenA Offline
          aarondietzen
          last edited by

          Not sure how that would work... right now I am using this for the Z location:

          =copy*(Window!LenZ/(Copies+1))+1/2

          Which divides the span of the window by the number of dividers (plus 1/2 the divider width to account for material thickness).

          I know there is a COPY attribute which allows you to manipulate individual copies, but cannot find an example or explanation of how it works.

          Thanks!

          "Imagination is more important than knowledge..."
          - Albert Einstein

          1 Reply Last reply Reply Quote 0
          • P Offline
            pcmoor
            last edited by

            =copy*(Window!LenZ/(Copies+1))+1/2

            Try =Window!LenZ/(Copies+1) + if(copy>0,(copy-1)*(Window!LenZ/(Copies+1)),0)+1/2

            the first distance + copy less one * distance + 1/2

            the if statement to make zero if copy = 0, otherwise copy-1 would be -1

            However this places the first and second instance @ the same position. So probably better to reduce the copies number

            ie for Copies: = window!number-1
            exact syn tact would be whatever you choose for the variable "window!number"

            then lenZ= Window!LenZ/(Copies+2) + copy*(Window!LenZ/(Copies+2) + 1/2

            Hope this helps
            Philip

            1 Reply Last reply Reply Quote 0
            • aarondietzenA Offline
              aarondietzen
              last edited by

              I ended up adding a HIDDEN attribute (=IF"copy=0,1,0) to hide the first instance.

              I will try what you suggested, though, Phillip. Better to have it not there than to have it hidden!

              Thanks!

              "Imagination is more important than knowledge..."
              - Albert Einstein

              1 Reply Last reply Reply Quote 0
              • aarondietzenA Offline
                aarondietzen
                last edited by

                Philip,

                Tried your solution and it worked PERFECTLY! Thanks a ton!

                "Imagination is more important than knowledge..."
                - Albert Einstein

                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