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

    jblively

    @jblively

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

    jblively Unfollow Follow
    registered-users

    Latest posts made by jblively

    • Send Action to show layers window HELP!

      Hello,

      Making a custom toolbar with Ruby and everything works great: Icons, actions, everything....except:

      I can't get the command to show the Layers Window to work.

      I've tried both of these:

      result = Sketchup.send_action "WindowLayers:"

      result = Sketchup.send_action "21354:"

      Referenced from here:
      http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#send_action

      On a PC WinXP, SU 8

      Nothing occurs when I click the button. But I can put any other action in there and it works fine.

      Anyone have any ideas?

      Thanks.

      Joe

      posted in Extensions & Applications Discussions extensions
      J
      jblively
    • RE: SketchyPhysics 3.2 Need bug reports!

      @cphillips said:

      If you send me the file and the extra ruby code I can try it out in a debugger and see if I can figure it out.

      Chris,

      I created a downloadable file for you and sent the details to you via PM. Thanks again!

      Joe

      posted in SketchyPhysics
      J
      jblively
    • RE: SketchyPhysics3.2 (Dec 2)

      @robint said:

      to make magnetic solids work you need to set the ui box status to magnetic
      and the magnetic force to a large value eg +- 1000

      I do believe that magnetic force is also affected by mass and scale. So if the model is very large, you'll need a larger value for magnetic force. If you have a small scale model, you can use a magnetic force of as little as 10 to see results.

      There is so much involved in SP, more documentation would be nice, but i'm just glad we have people here we can chat with who want to help!

      posted in SketchyPhysics
      J
      jblively
    • RE: SketchyPhysics 3.2 Need bug reports!

      Using SU 8, SP 3.2

      I'm still experiencing sporadic crashes of SU when running SP3.2. Not sure what's causing it. Below could be the issue, but want to see what you think.

      We have a routine that is ontick, that calls a Ruby subroutine that is defined in a custom RB file that is loaded at start up. The subroutine opens an ascii text file and reads the values. Since it's ontick that this routine is called, this file operation happens alot.

      Sometimes for no reason, SU just throws up a Microsoft C++ error and crashes. Sometimes it's a few frames in, sometimes it's 100's of frames in, sometimes it doesn't crash at at. But it occurs while the model is just sitting there, ticking away.

      This didn't seem to occur on SU7 with last year's sketch up. But, we weren't looking for it till now. We had some crashes, but just attributed it to normal bug splats. However, now they are too frequent to ignore.

      Any thoughts or suggestions on how we might debug it or what really might be causing it? Would there be a better way to have the subroutine check the values of a ascii file without doing it ontick?

      Thanks.

      Joe

      posted in SketchyPhysics
      J
      jblively
    • RE: SketchyPhysics3.2 (Dec 2)
      • New script command setFrameRate overrides physics settings framerate.

      Hello, trying to implement the set frame rate command to get the model to slow down on faster computers so we can anticipate the results.

      Can you let me know the usage and where to put it.

      I've tried setFrameRate=5; in the on tick section and it doesn't seem to make any difference.

      Thanks,

      Joe

      posted in SketchyPhysics
      J
      jblively
    • Finding Code

      Hello,

      Is there any tricks or something I don't know about that would make it easier to find where I have code stored in a model. I've got a few complex models with lots of code, and I can't find all of the objects that i've placed scripted code in.

      Is there a way to track or locate objects that have code attached to them?

      Joe

      posted in SketchyPhysics
      J
      jblively
    • Open layers from Custom Toolbar

      Hello,

      I can do most items from within my custom tool bar, using this code here:
      result = Sketchup.send_action “action”

      and parameters like these:
      showRubyPanel:
      viewZoomExtents:
      viewZoomToSelection:
      viewUndo:
      selectOrbitTool:
      selectDollyTool:
      selectTurnTool:
      selectWalkTool:

      But I don't know what the code is to turn on the layers window. I've try a few guesses and nothing seems to work. Any tips?

      Thanks,

      Joe

      posted in Developers' Forum
      J
      jblively
    • Application Observer

      Hello,

      I've been trying to find it, and I can't seem to, so I thought i'd ask here. I want to have an event occur when the sketchup application is opened...namely, I'd like to open a web dialog box, when sketchup is launched.

      I was trying to use a open observer and just launch sketchup with a file, but apparently, a commandstring open doesn't trigger the open observer. (Of course, it works perfect if I go to file open and open a file)

      Any tips on how to get a web dialog box to appear when sketchup is opened?

      thanks,

      Joe

      posted in Developers' Forum
      J
      jblively
    • RE: SketchyPhysics3.1

      @cphillips said:

      Ah, i forgot about the motor joint. Ill fix in next version.

      Thanks! Thought I was going a little crazy!

      posted in SketchyPhysics
      J
      jblively
    • RE: SketchyPhysics3.1

      @cphillips said:

      I have enabled the autoupdate. Hopefully it works.

      Auto update works like a charm.

      I have having a bit of troubles with the auto connecting Joints and the Slider. I can get the slider to show up, but I can't get it to react to the slide when I move it. I'm using a motor joint, maybe that's the issue?

      I've attached a very simple sample, can you see what I might be doing wrong?

      Here is the joint code I am using:

      ontouch{|t,s,p|
      @jnt=connect(t,"motor",0,0,1,0.5)
      ontouch{}
      }
      ontick{
      if @jnt!=nil
      @jnt.controllerValue=slider("motor",0)
      end
      }

      Thanks,

      Joe


      gears2.skp

      posted in SketchyPhysics
      J
      jblively