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

    [Plugin] Parametric Copy v1.01 20111030

    Scheduled Pinned Locked Moved Plugins
    22 Posts 13 Posters 27.0k Views 13 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.
    • PixeroP Offline
      Pixero
      last edited by

      Wow, I'm currently learning grasshopper for Rhino so this comes right on time. Will check ASAP. πŸ‘

      1 Reply Last reply Reply Quote 0
      • M Offline
        mirale999
        last edited by

        It didn't work on my sketchup 8.0, copied the object several times in one place... the error code below:

        Error; #<NoMethodError; undefined method `new' for nil;NilClass>
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;453;in `applyFunc'
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;471;in `move'
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;599;in `run'
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;406;in `onLButtonDown
        

        paranoia is a higher form of awareness...

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          The Grow's TIG plug survitamined! 😎

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            Hi,
            I've made a small guide with mikenon's instructions and included it in the zip. I post the guide here and the Zip is now on RLD site. Thanks Mikenon !


            ParametricCopy.pdf

            DB

            1 Reply Last reply Reply Quote 0
            • M Offline
              mikenon
              last edited by

              @mirale999 said:

              It didn't work on my sketchup 8.0, copied the object several times in one place... the error code below:

              If you do not select any options, the default behavior is to just copy all of the objects in place. You must specify a formula for one of the dimensions. For instance, if you specify "Constant-Step" for x-translation, and set the value to 1-foot. Then each copy will be moved over by one foot along the x dimension. If you specify 0-feet, then all the copies will be in a single place. Also, if there is an error, I think it just goes ahead and makes all the copies, but does not do anything to them (so they all end up in one place).

              Obviously, the code would benefit from some better error-handling. But I cant reproduce your error. Can you give more details of what you entered in the dialog boxes to generate it? Ive tested on OS X SU7 and OSX SU8.

              Mike

              1 Reply Last reply Reply Quote 0
              • M Offline
                mirale999
                last edited by

                @mikenon said:

                @mirale999 said:

                It didn't work on my sketchup 8.0, copied the object several times in one place... the error code below:

                If you do not select any options, the default behavior is to just copy all of the objects in place. You must specify a formula for one of the dimensions. For instance, if you specify "Constant-Step" for x-translation, and set the value to 1-foot. Then each copy will be moved over by one foot along the x dimension. If you specify 0-feet, then all the copies will be in a single place. Also, if there is an error, I think it just goes ahead and makes all the copies, but does not do anything to them (so they all end up in one place).

                Obviously, the code would benefit from some better error-handling. But I cant reproduce your error. Can you give more details of what you entered in the dialog boxes to generate it? Ive tested on OS X SU7 and OSX SU8.

                Mike

                Thank you for your patient answering, and below is my steps... 😳

                test.gif

                I'm using windows. I think I didn't do something wrong... I haven't learnt ruby yet, so I can't tell what's wrong with it, the only thing I can do is this... 😒

                paranoia is a higher form of awareness...

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mikenon
                  last edited by

                  @mirale999 said:

                  I'm using windows. I think I didn't do something wrong... I haven't learnt ruby yet, so I can't tell what's wrong with it, the only thing I can do is this... 😒

                  Hey that video is really helpful. Thank you! Unfortunately, I dont have windows, and I have no way to even access a windows machine, so I cant test it on a pc. 😞

                  It doesn't look like you are doing anything wrong though.

                  If there is someone on list with a windows machine, and knowledge of the differences between Sketchup on PC and MAC, perhaps I could help walk through the debugging. I imagine the difference between Sketchup on mac and pc cant be very big. So I think this should be a quick fix -- but I dont know.

                  Also, is there anyone on list who could verify that this works for them with OS X, so that I know it is not just something that works with the idiosyncrasies of my own machine? Its my first plugin (and first time learning ruby), so I would be grateful for any assistance.

                  Thanks for your help!!

                  Mike

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

                    I wish I could help but I can't...
                    I know nothing about MAC.
                    In Windows: I think the problem comes when user is asked to pick rotation/scale reference point
                    You can click 10 times, nothing happen. The software stays waiting for the validation of that input.
                    I hope it helped a little bit.

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Mikenon

                      There are only a few differences between PCs and MACs: for example with different names/codes for 'modifier' keys and so on.
                      I suspect something is adrift in your code about picking a point - it needs to reset a flag so it then continues... or the dialog values are not all trapped for errors/emptiness πŸ˜•
                      Get the users' Ruby Console errors...

                      TIG

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

                        This is very cool. SketchUp has needed something like this for a long time.

                        For me, SketchUp crashes every time, when the rotation is applied. I've tried different components, rotation axes, and parametric values. Each time, when the rotation is applied, I get a crash.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mikenon
                          last edited by

                          @danbig said:

                          This is very cool. SketchUp has needed something like this for a long time.

                          For me, SketchUp crashes every time, when the rotation is applied. I've tried different components, rotation axes, and parametric values. Each time, when the rotation is applied, I get a crash.

                          Danbig: what version of Sketchup and Windows/OS X are you running? Could you send me a private message with details of what paramater values you used? If you select "None" (you may have to use the pull-down menu to find "None") for all of the rotation and scale operations, but just choose Constant-Step for the translation options, do you get the same problem?

                          Everyone: Im in the process of fixing these bugs. It works perfectly on my OS-X box under extensive testing -- so I cannot debug on my own machine.

                          Therefore I am debugging by email, which is very slow. But it will get fixed. So far mirale999 has helped by allowing me to send him versions of the plugin with debug statements, running it on his Windows box, then sending me back the debugging output. We have discovered at least one difference between windows and OS X Sketchup: on OS X, if you leave the default values blank in inputbox dialog, the value of a pulldown menu will default to the first item. On windows, it will default to empty-string.

                          If anyone else is willing to help, please send me a message.

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mirale999
                            last edited by

                            β˜€
                            Mybe the last version I have tested, had fixed the bug successfully!

                            paranoia is a higher form of awareness...

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mikenon
                              last edited by

                              Ok here is version 1.01: http://forums.sketchucation.com/viewtopic.php?p=361858#p361858

                              In addition to fixing the error in Windows-compatibility, there is now better error-handling in general for the input boxes, and there are new parameters for some of the functions.

                              Extra thanks to mirale999 for patiently running code updates and sending me the bug reports.

                              Mike

                              1 Reply Last reply Reply Quote 0
                              • jeff hammondJ Offline
                                jeff hammond
                                last edited by

                                wow! β˜€

                                this plus a GUI and some sort of preview/incremental undos would be insane.
                                πŸ˜„

                                dotdotdot

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  Here's an Analog Clock I wrote in GDL years ago http://www.scribd.com/doc/66416515/110/Analog-Clock ... it was in an earlier version of the Cookbook...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • pilouP Offline
                                    pilou
                                    last edited by

                                    Remember this I have made 8 years ago πŸ˜‰

                                    GDL Language : Normally for ArchiCad or d'AutoCad but you can use it for Sketchup πŸ€“
                                    GDL book, free 😎

                                    need
                                    GDL Scripter free πŸ˜‰
                                    Just put some lines from the tutorial above in the window "Script 3D"

                                    GDL Web Control/Plug-in Free for see Objects rotate in 3D window πŸ‘

                                    GDL Object Explorer Free for see all the GDL of objects the univers! 😎
                                    and you can save as many formats! Not sure the this explorer is always available! here πŸ€“ πŸ˜‰
                                    Example ! Copy this following inside the 3D Script Editor πŸ˜„ Click on the Rubik-Cub πŸ˜„

                                    for i = 1 to 20 
                                    addx i*2
                                    CYLIND i*6, i*4
                                    next i
                                    

                                    http://forums.polyloop.net/attachment.php?attachmentid=2903&d=1098087739

                                    http://forums.polyloop.net/attachment.php?attachmentid=2904&d=1098087681

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

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

                                      Very nice plugin, exactly what i'm looking for.

                                      However, can i suggest the addition of a 'back' button when entering values? It would be great to try a number, look at the outcome, but then quickly go back and change the number to see what the difference is.

                                      1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        Lobster
                                        last edited by

                                        Hi mikenon,

                                        Looks very interesting and no problems so far.

                                        Thanks so much.

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          stoneuge
                                          last edited by

                                          Hi, witch matematical language do it use?
                                          i mean: there is a reference for translating operations in simbology?
                                          (i know * is x, and - is "less"...but i'd like to get some more...).
                                          thanks

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

                                          Advertisement