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

    Question about dynamic component

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    13 Posts 6 Posters 2.3k Views 6 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.
    • B Offline
      BUDLA
      last edited by

      Why my component "jumping" little back if i dragging it to right using the scale tool? πŸ˜•
      What's wrong?RIIUL_710.skp

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        Without seeing your component im just guessing really, but im guessing youve set a value for lenx/leny/lenz. If you go in to component attributes and remove these attributes (or at least remove your formula from them) thne it should work.

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • J Offline
          James Fraser
          last edited by

          I had a look at your model. You seem to be having the same problem as someone in this thread, although as you are taking positions for the side by adding the widths of the shelf and the other side the whole thing seems to jump back, not just leave a gap.

          I would have a look at my answer to that thread and the model I posted and try applying that to your model, it should be fairly straightforward. I can give you a longer explanation more specific to your model if you are still having trouble after that.

          http://www.FormFonts.com

          1 Reply Last reply Reply Quote 0
          • B Offline
            BUDLA
            last edited by

            Hello James!

            Sorry!,but right side moving 1,6 to right?riiul_710.jpg

            BUDLA

            1 Reply Last reply Reply Quote 0
            • J Offline
              James Fraser
              last edited by

              Would I be right in guessing that everything now stretches properly, but that the side jumps to the right by its own width? If so then you might want to check that the X for that side is equal to the total width minus its own width.

              If it is not something like that then if you post your model again I'll look at it for you and see what is going on.

              We'll get it working yet πŸ˜„

              http://www.FormFonts.com

              1 Reply Last reply Reply Quote 0
              • B Offline
                BUDLA
                last edited by

                Hello again James!

                Please look again! I think it OK!
                One question more? I add to component options "depth" and "height" in mm,but how add a "width"? Model=30cm but LenX=28.4cm? πŸ˜’

                Many thanksRIIUL.skp

                1 Reply Last reply Reply Quote 0
                • J Offline
                  James Fraser
                  last edited by

                  Yes, it is looking a lot better now. If you want to specify things like that I think you will need to shift everything on the right 1.6cm to the left (ie the width of the side). This just means changing everywhere that you have -1.6 to -3.2 and changing the X for VK to =copy(parent!lenx -1.6)

                  It is important to specify it like that, or the other side might move as well.

                  And that should be it, I think πŸ˜„

                  http://www.FormFonts.com

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BUDLA
                    last edited by

                    James!
                    I removing copyed side and made new side.Now it work perfect! If you want look it!

                    Thank you very much for instructions! πŸ˜„

                    BUDLARIIUL.skp

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      James Fraser
                      last edited by

                      That's excellent, glad I could help πŸ˜„

                      http://www.FormFonts.com

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dhruv
                        last edited by

                        I wanted to know one thing, can I define my onClick openURL function in DC? Can I define my own functions in DC? if so where do I do it? I don't know whether image URL does the same thing. Can somebody clarify it?
                        Something like userdefined function.

                        Thanks,
                        Dhruv

                        1 Reply Last reply Reply Quote 0
                        • Chris FullmerC Offline
                          Chris Fullmer
                          last edited by

                          Dhruv was responded to here:

                          301 Moved Permanently

                          favicon

                          (www.sketchucation.com)

                          Please respond there if you have additional comments on his post so we can keep the forum tidy. Thanks!

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

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dvonhausen
                            last edited by

                            I would like to know how to create a DC completely from scratch using Ruby. In my case I want to create a sphere with a "radius" attribute. I know how to create dc using SU and accessing the component to add custom attributes and I know how to create a sphere component by creating faces but I don't know how to make it a dc. I assume all I have to do is do a bunch of "set_attributes("dynamic_attributes"..." to make the sphere component dynamic but I don't know what attributes I need to set. Does anyone know?

                            1 Reply Last reply Reply Quote 0
                            • Chris FullmerC Offline
                              Chris Fullmer
                              last edited by

                              Sorry, I don't know off the top of my head. But I do know that somewhere there was a post or a blog entry or something that Scott Lininger started to go into some quick explanation of this.

                              I'll try to dig around and see if I can find what I am thinking of.

                              Chris

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

                              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