sketchucation logo sketchucation
    • Login
    1. Home
    2. Garry K
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Urasik Extensions | Lots of new extensions to check out Learn More
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 33
    • Posts 976
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: [Plugin] GKWare Cabinet Maker

      Version 1.0.27 now available for download

      • Added 'Door Overlay Side'. You can now adjust rail and mid stile overlay independently of stile overlay
      • Tall cabinets with face frames had bug on positioning of mid doors. Fixed.
      • Angled face frame cabinets can't use stile overhang. It is now disabled.
      • Added side dado / rabbet for tops and bottoms
      posted in Plugins
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      I've figured this out without having to use Pro features.

      Here are some examples of dado's / rabbet's on side panels. Notice that the dado depth for backs and dado depths for tops and bottoms do not have to be the same.


      _dado_1.png


      _dado_2.png


      _dado_3.png


      _dado_4.png

      posted in Plugins
      G
      Garry K
    • RE: Sopwith Camel 1917

      Mike,

      Have you changed your virus protection system recently? Or have you modified jquery rights etc? Just trying to rule out potential issues?

      posted in WIP
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      I've already got a couple of clients (retired) who purchased the Gold version simply to make cabinets for their own home.

      I'm pretty sure that they could get a way with the Make license if they aren't interested in the Pro features.

      posted in Plugins
      G
      Garry K
    • RE: Sopwith Camel 1917

      Images


      2 r.png


      3.jpg


      No Good..png

      posted in WIP
      G
      Garry K
    • RE: Sopwith Camel 1917

      Mike,

      If you PM me the image. I'll see if I can post it.

      posted in WIP
      G
      Garry K
    • RE: Sopwith Camel 1917

      As long as you are logged in you can attach jpg or png files.

      However, there is an upper limit on file size - 2 megabytes I think.

      posted in WIP
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      I'm currently adding dados / rabbets to sides for top and bottoms.

      Unfortunately I'm running into issues where the dado's / rabbets for the back overlap the dado's / rabbets for the tops and bottoms.

      If the dado depth is the same for backs, tops and bottoms then there is no problem. I can use boolean operators on the sides but that means it will only work if you are running the Sketchup Pro.

      Any comments on restricting this feature to SU Pro users?

      posted in Plugins
      G
      Garry K
    • RE: Component image URL attribute export to CSV

      A CSV file can only contain text.

      An html file can contain embedded images. first convert the image to Base64

      
      <img src="data;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAD
       NCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5c
       cllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EEK
       gCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ
       0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtyaGhoaGhoaGhoaGhoaGhoxtb0QGho
       aGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6x
       v3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0
       NDQ0NDQ0NTXbRSL/AK72o6GhoaGhoRlL8951vwsNDQ0NDQ1NDc0WyHtDTEhD
       Q0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwRQ
       AAAAAElFTkSuQmCC" alt="beastie.png">
      
      
      posted in Newbie Forum
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      Oops - version 1.0.25 shows up as version 1.0.24

      There is now a version 1.0.26 which correctly shows version 1.0.26

      posted in Plugins
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      Here's a tip. If you want to do additional math on your csv reports then try turning off 'Display Units Format'.

      The CSV reports honor your settings.

      If you are using fractional inches and see a tilde '~' in front that means approximate. For precise math you should check each web dialog screen and remove the tildes.


      units.png

      posted in Plugins
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      Version 1.0.25 is now ready for download

      You can now adjust door parts for reporting.
      I am now automatically detecting if OS is setup for decimal symbol as ',' a comma. If so then the report uses ';' semi colon as delimeter for CSV reports otherwise the CSV reports use a comma.


      new door editor.jpg

      posted in Plugins
      G
      Garry K
    • RE: SU-2016 - what's in &quot;make&quot; version compared to 2015 make

      I put all my plugins in a common place and then tell sketchup to look there. For me to go from 7 to 8 to 2013 to 2014 to 2015 to t016 is effortless.

      Since I am a plugins author and want my plugins to work with all these versions I want all of this to be seamless.

      If you are interested in how this works then PM me.

      posted in SketchUp Discussions
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      I'm adding size adjustments for panel raised door parts. You can now adjust stiles and rail widths and lengths and panel width and height.

      Modified parts lists to allow for adjustments.

      Next version should be out some time tomorrow.

      posted in Plugins
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      Version 1.0.24 now available for download

      • Section changes now automatically sets sectin to "Save"
      • Several reports had wrong counts - Fixed.
      • Reports were not handling decimal symbol other than '.' - Fixed.
      posted in Plugins
      G
      Garry K
    • RE: [Plugin] GKWare Cabinet Maker

      So then - a CSV file - which is short for (Comma Separated Values) won't work properly for Regional Settings that use a comma as a decimal symbol.

      For reports fractional inches currently works - but mm and decimal inches with extra comma's do not
      I should have a fix later today.

      I've read that excel in Europe by default uses a semi colon as a delimiter.

      posted in Plugins
      G
      Garry K
    • RE: Webdialog for a progressBar

      Typically I do not use a progress bar. Instead I use Sketchup::set_status_text

      I'm happy using a counter with a modulus. I generally try to update the status no more than once every second or two.

      The same idea would work for a progress bar. All I was trying to do is give bomastudio a solution to his request and show him how to get around the problem of the web dialog being starved of cpu time. Without the timer loop you blow the bottom off the stack. With a timer loop you incur a performance penalty.

      The interesting thing is the jquery ready function would only fire after the heavy processing had finished.

      posted in Developers' Forum
      G
      Garry K
    • RE: Webdialog for a progressBar

      It is sort of like a game of ping pong where the Ruby is on one side and the web dialog is on the other side. The ball is the CPU control - you simply pass it back and forth.

      The timer is used to maintain the stack - otherwise you could get too deep and get a stack error.

      posted in Developers' Forum
      G
      Garry K
    • RE: Webdialog for a progressBar

      With my test application the web dialog was updated 260 times.

      I changed first function

      
      def original_function()
        grps.each{ |grp|
          # Do your code in this loop
        }
      end
      
      def first_function()
        @total = @grps.length
        @counter = 0
        show_progress_bar('progress bar', 400, 200, 0, 0, @total)
      end
      
      def second_function()
        grp = grps[@counter]
       
        # Do your code here - as if you were in a loop
        @counter += 1
        update_progress_bar(@counter) 
      end
      
      
      posted in Developers' Forum
      G
      Garry K
    • RE: Webdialog for a progressBar

      There is a way of doing this but you will slow things down and you can't put the code inside a start_operation / commit_operation.

      You pass control back and forth between your ruby script and the web dialog through the use of callbacks.

      dialog.execute_script(script)
      window.location.href = 'skp:ruby_callback@';

      You need to rewrite your main loop and put the code into 2 functions instead of 1
      Last line of first function creates the web dialog

      When the web dialog has completed setting up then perform a callback
      In the callback setup a timer that does not repeat and set time as 0.01 or something like that.
      Inside the timer call the second function, at the end of the second function make a call to the dialog to update the progress bar.

      
      require 'sketchup'
      
      module YourSpace
        module YourModule
        
          def show_progress_bar(title, width, height, left, top, total)
            build_html()
            @progress_total = total
      
            @dlg = UI;;WebDialog.new(title, false, "progress_bar_#{title}")
            @dlg.set_size(width, height)
            @dlg.set_position(left, top)
            @dlg.set_html(@@html_code)
            @dlg.set_on_close {
              @dlg = nil
            }
      
            @dlg.add_action_callback('ruby_callback') { |dialog, params|
              text  = params.to_s
              check = text[0..5]
      
              if (check == 'loaded')
                # if you want to do something after loading
              end
              
              UI.start_timer(0.01, false) {
                your_second_fucntion()
              }
            }
            
            @dlg.show()
          end
          
          def update_progress_bar(data)
            if (data == @progress_total)
              @dlg.close()
            else
              percentage = data / @progress_total.to_f
              script = "from_ruby( '" << percentage.to_s << "' )"
              @dlg.execute_script(script) if (@dlg != nil)
            end
          end
      
          def build_html()
          @@html_code = <<-HTML
      <!DOCTYPE HTML>
      <html lang="en">
      <head>
        <title>Progress Bar</title>
        <meta http-equiv="X-UA-Compatible" content="IE=9"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      </head>
      <style>
      #my_progress {
        width; 100%;
        height; 20px;
        position; relative;
        border; 1px solid #ccc;
      }
      #my_bar {
        width; 10px;
        height; 100%;
        position; absolute;
        background-color; blue;
      }
      </style>
        <body>
          <div id="my_progress">
            <div id="my_bar">
            </div>
          </div>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
        <script>
          var progress_wd;
          
          function from_ruby(data) {
            var new_wd = progress_wd * parseFloat(data);
            $('#my_bar').width(new_wd);
      
            ruby_call(data);
          }
          
          function ruby_call(text) {
            window.location.href = 'skp;ruby_callback@' + text;
          }
          
          $(document).ready(function() {
            progress_wd = $('#my_progress').width() * 1.0;
            ruby_call('loaded');
          });
        </script>
        </body>
      </html>
      HTML
          end
        end
      end
      
      
      posted in Developers' Forum
      G
      Garry K
    • 1 / 1