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

    Dynamic Components Copy Positions

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    5 Posts 3 Posters 3.1k 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.
    • K Offline
      kennethagiusmosta
      last edited by

      Hi to all,

      I'm a newbie with dynamic components and I'm finding some difficulties as such. Web is not so helpful like it was when it was with the basic sketchup. Anyway!

      I've managed to copy components and position them with formulas. I cannot find a way though and here is my question:

      Is there a way to copy a component as specified by the user and position them as he likes.

      For example:
      The user wants 4 copies of a horizontal member in a frame (let's say 5 metres in hieght). Then he positions them in
      1st at 10cms
      2nd at 20cms
      3rd at 100cms
      while the last at 400cms.
      These are not standards or constant position as the user may vary the positions at will and most importantly he can use more or less than 4 copies (maybe 5, 9 or 10)

      Is there a formula that can be used? Help is much appreciated..I'm stuck

      Best regards
      Kenneth

      1 Reply Last reply Reply Quote 0
      • Phillip HP Offline
        Phillip H
        last edited by

        @kennethagiusmosta said:

        Hi to all,

        I'm a newbie with dynamic components and I'm finding some difficulties as such. Web is not so helpful like it was when it was with the basic sketchup. Anyway!

        I've managed to copy components and position them with formulas. I cannot find a way though and here is my question:

        Is there a way to copy a component as specified by the user and position them as he likes.

        For example:
        The user wants 4 copies of a horizontal member in a frame (let's say 5 metres in hieght). Then he positions them in
        1st at 10cms
        2nd at 20cms
        3rd at 100cms
        while the last at 400cms.
        These are not standards or constant position as the user may vary the positions at will and most importantly he can use more or less than 4 copies (maybe 5, 9 or 10)

        Is there a formula that can be used? Help is much appreciated..I'm stuck

        Best regards
        Kenneth
        Unless I misunderstand you, from the users perspective, there is no standard distance between copies or number of copies. It sounds like you may want to set up some custom attributes to be filled in by the user in the Component Options Window. The first attribute to hold the number of copies desired and the second to record the sequence of custom spacing for each copy in order. An alternative would be to simply set a default (or custom) spacing value and let the user place the copies themselves with the Move tool.

        Hope this helps,
        Phillip

        HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
        NVIDIA NVS 3100, 512 MB
        Windows® 8.1 64 bit
        SketchUp Pro 2015 version 15.3.331 64-bit

        1 Reply Last reply Reply Quote 0
        • K Offline
          kennethagiusmosta
          last edited by

          Philip H & pcmoor thank you for feedback it was very help full

          1 Reply Last reply Reply Quote 0
          • Phillip HP Offline
            Phillip H
            last edited by

            Kenneth,

            I should have asked, is there a general rule that can also be applied, such as a engineering requirement or building code that might affect minimum or maximum spacing?

            @ Philip - great example.

            HP EliteBook 8440p Intel® Dual Core™ i7 M620@ 2.67 4GB RAM
            NVIDIA NVS 3100, 512 MB
            Windows® 8.1 64 bit
            SketchUp Pro 2015 version 15.3.331 64-bit

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

              You can use condition statements to effect the placement, if you want individual input, perhaps up to ten, then you can use the dialog.

              x = 10 + if(copy,10,0) + if(copy>1,80,0) + if(copy>2,300,0)

              results for copy: for 0 => 10,for 1 => 20, for 2 => 100, for 3 => 400, your first example

              or
              x = if(copy=0,value1,0)+if(copy=1,value2,0)+if(copy=2,value3,0)+.......

              There is an example on my warehouse page
              https://3dwarehouse.sketchup.com/model.html?id=u39b49ce8-66fb-4a59-ab35-3e9c9ae3d1ea

              where either selected or user input effects position and number of copies of elements to build a door

              But after a point, based on complexity and file size, as Phillip says....use Sketchups native tools

              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