• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Deleting first instance of copied items

Scheduled Pinned Locked Moved Dynamic Components
sketchup
6 Posts 2 Posters 1.0k 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.
  • A Offline
    aarondietzen
    last edited by 8 Jul 2013, 20:53

    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 9 Jul 2013, 13:00

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

      1 Reply Last reply Reply Quote 0
      • A Offline
        aarondietzen
        last edited by 9 Jul 2013, 18:14

        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 10 Jul 2013, 02:19

          =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
          • A Offline
            aarondietzen
            last edited by 10 Jul 2013, 14:59

            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
            • A Offline
              aarondietzen
              last edited by 10 Jul 2013, 18:57

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

              Advertisement