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

    debracey

    @debracey

    10
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    debracey Unfollow Follow
    registered-users

    Latest posts made by debracey

    • Get Current Axes Position/Orientation

      Hello everyone,

      is it possible to get the model's axes/orientation through the Ruby API? I used the axes button (under the construction toolbar) and moved the axes so that:

      1. They are in the dead center of the model (vs the corner)
      2. Rotated 90 degrees clockwise

      All I need to do is get this info into Ruby so I can push it out into some XML that I'm writing, is there any way to do this?

      Thanks

      Dan

      posted in Developers' Forum
      D
      debracey
    • RE: Iconv.so dependency fails

      Thanks for the tips,

      Unfortunately I cannot simply package a Ruby distribution, so I'm sorta stuck here. I really don't need iconv at all for what I want to do -- so I just did a grep on all my dependencies and removed the references to iconv, that seems to have resolved the problem. (Not exactly the best solution, but it'll work for what I need.)

      posted in Developers' Forum
      D
      debracey
    • Iconv.so dependency fails

      Hello folks,

      I've written a sketchup plugin which uses JSON to pass data back and forth between a web dialog and the plugin. Everything works great on my development machine (which also runs a Ruby 1.8.6 dev env) -- but when I go to install the plugin on a clean machine, it fails to load with the following error:

      @unknownuser said:

      Error Loading File configexporttool.rb
      126: The specified module could not be found. - C:/Program Files (x86)/Google/Google SketchUp 8/Tools/iconv.soError Loading File json.rb
      126: The specified module could not be found. - C:/Program Files (x86)/Google/Google SketchUp 8/Tools/iconv.so

      If I navigate to the tools folder, iconv.so is sitting there -- so I'm not sure what's going on. I used dependency walker to check iconv.so to make sure I wasn't missing any dependencies, and found that MSVCRT-RUBY18.DLL was required. I placed that file in the tools folder and that cleared the dependency problem, but I still get that error on startup.

      Any ideas?

      Thanks, Dan

      posted in Developers' Forum
      D
      debracey
    • Determine if face is pointing toward center

      Hello folks,

      Im having trouble controlling a sketchup model with the Ruby API. Specifically, I am trying to push/pull some 3D cubes that are hanging on the walls of the model (like a wall mount TV). I enter the value for pushpull (ie. ent.pushpull 12) and sometimes the face is pushed out of the wall, while other times it is pushed in toward the center of the room.

      Ideally, I always want the pushpull to move the box "in" toward the center of the room (not out through the wall). I'm not sure how to programatically figure out if I need a negative number for push/pull .

      Thanks

      posted in Developers' Forum
      D
      debracey