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

    Repeat a Component Across Varying Spans

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 2.2k 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.
    • U Offline
      ussmex
      last edited by

      Greetings,

      I'm familiar how to repeat a component every X inches, for example, using Position X = 0 +COPY*36, but I was wondering if anyone is familiar with how to space the copies across spans that vary in length based on user input.

      My idea was the following:

      1. Allow users to define the LenX of "Span0", "Span1", "Span2", etc. via text box.
      2. Set Span2!X, for example, equal to Span0!LenX + Span1!LenX.
      3. Set CopiedComponent!X equal to Span(COPY)!X, so that the instance of the Span being referred to is defined by the Copy number.

      I've been trying it using the formula ="Span"&COPY&"!X, but I'm not getting correct results.

      Am I using the correct syntax in the formula? If that won't work is another way to accomplish it?

      Thank you!

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

        use conditional statements

        for X attribute, =if(copy=1, span1)+ if(copy=2, span1+span2)....

        1 Reply Last reply Reply Quote 0
        • U Offline
          ussmex
          last edited by

          Thank you pcmoor!

          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