• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

"Centered" Repeating Sub-Components?

Scheduled Pinned Locked Moved Dynamic Components
sketchup
3 Posts 2 Posters 527 Views
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.
  • S Offline
    SUFractal
    last edited by 8 Mar 2012, 04:42

    Hello:

    I'm trying to figure out the commands/formula for "centering" the position of repeating subcomponents, along one axis of dynamic component. I want the total number of sub-components to be equally spaced from each end of the overall length of the component, no matter what the length is. I am assuming the repeating subcomponent should not be constrained (position-wise) along that axis?

    Does my explanation make sense?

    Any help would be much appreciated!

    1 Reply Last reply Reply Quote 0
    • D Offline
      DareDevil
      last edited by 8 Mar 2012, 14:37

      I don't know if I really understand your request, but here is my answer ๐Ÿ˜‰
      Distrib.skp
      There is a component in a component, you choose the number of sub component and you can stretch the mastercomponent along the red axes. The sub components will be placed at
      X = Copy * (Master!LenX - LenX)/(Copies + 1)
      You must fix the LenX of the sub component to avoid to transform them when you resize the master component.

      1 Reply Last reply Reply Quote 0
      • S Offline
        SUFractal
        last edited by 9 Mar 2012, 00:47

        @unknownuser said:

        I don't know if I really understand your request, but here is my answer ๐Ÿ˜‰
        [attachment=0:6mcjm8ou]<!-- ia0 -->Distrib.skp<!-- ia0 -->[/attachment:6mcjm8ou]
        There is a component in a component, you choose the number of sub component and you can stretch the mastercomponent along the red axes. The sub components will be placed at
        X = Copy * (Master!LenX - LenX)/(Copies + 1)
        You must fix the LenX of the sub component to avoid to transform them when you resize the master component.

        I'm trying to do something similar to some of the typical fence direct components (DC's) that are floating around.

        I have LenX of the subcomponent fixed, and the number of them is being determined by dividing the Master!LenX/LenX. Additionally, I'm trying to use the 'INT' math function to round-down the number of repeating SC's, to keep the total length of them to less than Master!LenX.

        LenX is also the "spacing", as the sub-components are touching each other, so there is actually no space between them.

        Thanks.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement