sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Dynamic Component, sub-components shift in relative position

    scheduled pinned locked moved Dynamic Components
    sketchup
    5 Posts 3 Posters 1.8k Views 3 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • B Offline
      brisom
      last edited by brisom

      I have a simple Dynamic Component built of only three sub-components. I am trying to resize it with a drop-down list of differing widths with two of the three dimensions constrained. When I select a different width setting the sub-components shift relative position and their over-all size is bigger than it should be. Any thoughts?

      one-reply-to-this-post last-reply-time reply quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Sure, could you upload it for us to look at?

        Sub components base thie position on the position of their parent's origin. So keep that in mind while making DC's.

        But if you upload it here, we'll take a look at what you have.

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        one-reply-to-this-post last-reply-time reply quote 0
        • B Offline
          brisom
          last edited by

          Thanks for getting to me so quickly, here is the file.
          I have made and remade it several times and always get the same result.

          one-reply-to-this-post last-reply-time reply quote 0
          • M Offline
            markozeta
            last edited by

            This is a pretty easy fix, just set x, y, z to proper values.

            See attached.

            By setting the X, Y of the cross bar's axis to the correct location, (e.g. 0.75", 0.75"), the cross bar stays in place. Then the farther away bar just needs it's X, Y, Z, coordinates set to equal the length of the component, and tada, the part works fine. Then I just added some bulletproofing (e.g. set LenZ_Part = LenZ_FatherComp), so that way scaling wouldn't mess it up. And turn the scaling handles off, since you won't be using those (I hope not, this would be a bit more complicated if you needed to include dynamic scaling).


            It's a table!

            BSME - Cal Poly Pomona
            Sketchup Pipe Maniac

            one-reply-to-this-post last-reply-time reply quote 0
            • B Offline
              brisom
              last edited by

              Thanks Markozeta for your replies, and quick too. I would have responded sooner, but had a time of it logging on. But the info helped and I am on my way.

              Thanks, Brian

              one-reply-to-this-post last-reply-time 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