Ruby Possibility?
-
A friend contacted me looking for some help. He has drawn a 30" wide kitchen base cabinet--all parts as separate components--and from this one, he would like to generate the standard cabinet widths from 12" to 40". The standard way to do this would be to make a copy of the cabinet, make each of the front and back components unique and then resize them accordingly.
Would there be a way to automate this with a Ruby script?
One thought I had that might be useful in more situations is a sort of macro recorder/player. Suppose you activate the recorder (A bit like getting a component definition with the applyTo script) and do the things you need to do to a component, i.e. Make unique, open for editing, resize, close component. Then, select another component or components and "play" the just recorded steps.
Would this be possible?
-
There are 2 cabinet ruby scripts on Didier's site. I don't use them so I'm not sure if they would satisfy your requirements. Look under the "Architecture" section.
-
Thanks Ron, I've used both of those scripts and they are handy. The original problem lead me to wondering if a script that has wider application might be possible. I'm guessing from the lack of response from the gurus that it isn't.
Cheers,
Dave
-
I have a set of scripts that I developed for frameless European style cabinets.
It does wall cabinets, base cabinets and corner cabinets for both. Just about every parameter is adjustable via dialogs both before and after placing the cabinets.
At the moment it's integrated into my SU environment rather than being something I could just post here. If you think it might be of some use then I could spend an evening or two making it stand-alone.
-
Yes, it would be very useful.
I'm supposing when you said you have several scripts, those are for different cabinet types?
-
Yes, four scripts, plus two supports classes. No real reason why they couldn't all be in one Ruby but it makes the code too big for my tastes.
I've been rushed off my feet the last couple of days (hence the lateness in replying) but I'll see if I can get then posted on here ASAP.
Advertisement