sketchucation logo sketchucation
    • Login
    1. Home
    2. ktkoh
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 83
    • Posts 249
    • Groups 2

    Topics

    • K

      Context Menu Question

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      96 Views
      K
      Thanks Dan that worked and was just what I needed. Keith
    • K

      Program format

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      677 Views
      Dan RathbunD
      Keith.. updated the template example. Moved the definition of WIN and MAC constants up to the Object level. I had an inline comment, that said they'd be inherited by all nested namespaces. They would not have been. I've been working with mixin modules and subclasses lately, and got some braincells crossed. We've asked Google to define these when Sketchup starts but they have not, as yet.
    • K

      Tool Bar Question

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      202 Views
      D
      do you read your PM's or check for answers? john
    • K

      Rotating Component so long dim is on red axis

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      168 Views
      K
      Thanks for the code it worked just fine. I had finally found the piece I was missing and this is what I had come up with model = Sketchup.active_model entities = model.entities ss= model.selection entity = ss.first selection_bb = entity.bounds max_dir = "blue axis" if selection_bb.height > selection_bb.depth max_dir = "green axis" if selection_bb.width > selection_bb.height then max_dir = "red axis" end else if selection_bb.width > selection_bb.depth then max_dir = "red axis" end end case max_dir when "blue axis" tr = Geom;;Transformation.rotation [0,0,0], [0,1,0], 90.degrees entities.transform_entities tr, entity when "green axis" tr = Geom;;Transformation.rotation [0,0,0], [0,0,1], 90.degrees entities.transform_entities tr, entity end Similar and the results are both ok.
    • K

      Edge length question

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      180 Views
      K
      Thanks TIG That was exactly what I needed!!! Keith 11
    • K

      K2WS_Tools a joint tool set for SU

      Watching Ignoring Scheduled Pinned Locked Moved Woodworking
      4
      0 Votes
      4 Posts
      1k Views
      D
      Most helpful. Many thanks for taking the time. dh
    • K

      [Plugin] K2WS_Tools a joint tool set for SU

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      36
      0 Votes
      36 Posts
      12k Views
      S
      Hi Keith, You are a genius! As you suggested to me, I erased files and everything works normally. Once again thank you for your intervention! Richard G.
    • K

      Opening other files from ruby

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      6
      0 Votes
      6 Posts
      221 Views
      K
      Thanks Dan that worked just fine. I think I will only need to show the file once as the joint tools are not extreemly complicated but it is importsnt to know what edges the program is expecting you to pick. Thanks Keith
    • K

      Fractions and units display

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      4
      0 Votes
      4 Posts
      237 Views
      J
      Not sure what the problem is? What are you trying to do?
    • K

      Reverse faces after pushpull??

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      444 Views
      TIGT
      My idea of using a temporary group means that the faces in the group are all that's needed to consider for reversing - so it very quick; if you are making lists of all entities before and after a pushpull then there might be thousands of them to sift through, twice! ... So why not make a group, add a circular face, pushpull it, reverse the faces in the group, re-add a circular face to the group and erase it, then add a circular face to the main-face and erase it to leave a hole over the grouped 'recess', and finally explode the group? It will be much quicker in most circumstances... and 'safer' too...
    • K

      Methods from Support files

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      204 Views
      TIGT
      Moved.
    • K

      Plugin problem in SU8

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      373 Views
      sdmitchS
      Keith, I don't have a clue as to why your BoxJointTool splats but I know where it happens. I added a number of statements to print to a file then ran the program several times and in all cases it reached assentially the same place before crashing. The referenced zip file contains the output files, your modified .rb file, and my own version of a BoxJoint tool. The procedure for using mine is a little different in that instead of selecting the component then two edges, in mine, you select the component then the end face. BoxJoint files
    • K

      Reversing direction of a feature

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      168 Views
      K
      Thanks TIG that was exactly what I was looking for and it works perfectly!! Keith
    • K

      How to handle units when calculating points

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      2
      0 Votes
      2 Posts
      145 Views
      thomthomT
      If the values are in inches then you won't need to convert from a float to length if you are only passing it to Point3d.new. Looking I your code I would have made your hard coded values into reusable variables or constants. Easier to maintain and you'll be creating less objects. The only time you need to convert to a Length is when you need to output the unit to the current model unit as Length.to_s will do that. Otherwise, make sure any hard coded lengths are in inches, or use the helper methods that converts it to Length object.
    • K

      Question on Ruby Problem

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      132 Views
      K
      Thanks TIG as usual you were right on the problem and I found the error earlier in the code and it resulted in dir_y did not exist and program did not actually reach the point I thought was the problem. Keith
    • K

      Shorter version for this ruby line

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      176 Views
      A
      Try: cface=codef.entities.add_face(@pt) It's good that the API allows both ways... entities.add_face(pt1, pt2, pt3, ...) entities.add_face([pt1, pt2, pt3,...])
    • K

      Lost Oribit from Mouse Wheel Click

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      2
      0 Votes
      2 Posts
      116 Views
      Rich O BrienR
      Hi Keith, Is the scroll wheel working in other apps? Did you install a driver lately?
    • K

      Loading plugins only when needed

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      6
      0 Votes
      6 Posts
      421 Views
      fredo6F
      Keith, I think this is the way to do, because it speeds up the start of the Sketchup application. I introduced this approach for my own plugins with LibFredo6 3.6. I called it "two-phase loading" (only the files bootstrap_... are loaded at SU startup time). Actually, you may see a small message in the status bar indicating the file loading the first time you use the plugin. Also the time for the second phase is indicated in the About... box. I use a slightly different method but it does not matter. This save a few hundreds milliseconds for each plugin, so seconds at the end Fredo
    • K

      New mortise & tenon tool for woodworkers

      Watching Ignoring Scheduled Pinned Locked Moved Woodworking
      6
      0 Votes
      6 Posts
      4k Views
      D
      Hi, I just found your plugin for mortise and tenons but am having trouble understanding how to use. Could you re post the videos showing how to do it?
    • K

      New mortise & tenon tool for woodworkers

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      15
      0 Votes
      15 Posts
      9k Views
      K
      Here is one of the files. Most features work similar Keith LooseTenonJoint.swf
    • 1 / 1