sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Ruby Possibility?

    Scheduled Pinned Locked Moved Plugins
    6 Posts 4 Posters 1.7k Views 4 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.
    • Dave RD Offline
      Dave R
      last edited by

      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?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

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

        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.

        404 Not Found

        favicon

        (www.crai.archi.fr)

        Ron

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

          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

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • A Offline
            AdrianM
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • G Offline
              gata
              last edited by

              Yes, it would be very useful.

              I'm supposing when you said you have several scripts, those are for different cabinet types?

              1 Reply Last reply Reply Quote 0
              • A Offline
                AdrianM
                last edited by

                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.

                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