[Plugin] Parametric Copy v1.01 20111030
-
Wow, I'm currently learning grasshopper for Rhino so this comes right on time. Will check ASAP.
-
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
-
The Grow's TIG plug survitamined!
-
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 !
-
@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
-
@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...
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...
-
@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
-
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. -
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... -
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 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.
-
Mybe the last version I have tested, had fixed the bug successfully! -
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
-
wow!
this plus a GUI and some sort of preview/incremental undos would be insane.
-
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...
-
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, freeneed
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-Cubfor i = 1 to 20 addx i*2 CYLIND i*6, i*4 next i
-
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.
-
Hi mikenon,
Looks very interesting and no problems so far.
Thanks so much.
-
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
Advertisement