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

    Topics

    • H

      Component Axes

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      8k Views
      H
      Boom! That worked! Thank you sir! --J
    • H

      Web dialog not displaying local image

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      844 Views
      D
      here's that toolbar example http://sketchucation.com/forums/viewtopic.php?p=363402#p363402... personally I avoid jpg like the plague and would go for png... require 'base64' File.open('imagetobase64.png', 'r') do |image_file| puts Base64.encode64(image_file.read) end john
    • H

      Rotation transformation for a component instance

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      2k Views
      Dan RathbunD
      @honkinberry said: I want to be able to place a component like a bench, and then immediately rotate it about the Z axis. So both the placement and the rotation should be linked very smoothly to accurate cursor position. OH.. well that is extremely EASY. Because that functionality is built-into the native component placement tool, which is accessible from the Ruby API. So.. for example the bench's name is "Bench Wood HighBack" def place_bench() mdl = Sketchup.active_model compdef = mdl.definitions["Bench Wood HighBack"] if compdef mdl.place_component(compdef,false) return true else return false end end The trick is the 2nd argument to Model#place_component() must be false, so that you can use the rotate handles (they appear as little red crosses,) just after you choose the insert point. Insert the bench.. then move the cursor to the top of the comp's boundingbox, and you should see 4 red crosses appear. Hover over one of the cross handles, and the cursor will change to a rotate cursor. Hold & Drag (or Click Move Click,) to rotate about the Z axis.
    • H

      Multiple dialog scope issue on the PC

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      24
      0 Votes
      24 Posts
      380 Views
      Dan RathbunD
      @honkinberry said: The javascript:void(0) is the recommended practice, indicating that the onclick handler is to take precedence. I disagreed 3 years ago when we discussed this issue, and still do. Read my detailed explanation in this old thread: Webdialogs and Javascript void Any more discussion on this offtopic, can be done in that thread, if you wish.
    • H

      Download RBZ file

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      30
      0 Votes
      30 Posts
      39k Views
      Dave RD
      What plugins did you download? Plugins won't download as .skp files. That would indicate you've downloaded SketchUp models/components.
    • H

      Webdialog on Mac

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      67 Views
      thomthomT
      It's not modal, no. It makes the window stay on top of the SketchUp windw (which is what Windows does in all cases.) For my CleanUp plugin I worked around it by creating a tool where I hooked up the deactivate event to close the dialog. That also captures the mouse events so users can't click randomly in the model and change it while the tool and dialog is active. On SU8+ I also draw a semi-transparent polygon over the whole viewport to dim it. Source code for the tool wrapper is here: https://bitbucket.org/thomthom/tt-library-2/src/5ec87b0647c953c397b605922f31d5dbe21ad548/TT_Lib2/modal_wrapper.rb?at=Version%202.7.0
    • H

      ENV['COMPUTERNAME'] for Mac?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      2k Views
      D
      @honkinberry said: Jim is correct! hostname does indeed work. but that returns the same on all 5 macs on my network, so for a Licence management usage it seems a bit pointless? If you only need to know if it's a mac or not there are many simple ways to get that... glad your happy john
    • 1 / 1