sketchucation logo sketchucation
    • Login
    1. Home
    2. RabidCicada
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 14
    • Groups 1

    RabidCicada

    @RabidCicada

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

    RabidCicada Unfollow Follow
    registered-users

    Latest posts made by RabidCicada

    • RE: Interest in a Networking Sockets Workaround

      One last question....Did you figure out the method of ruby integration through some documentation? or did you simply poke around enough?

      I guess if you are already familiar with he inner working of Ruby at the object file level then you would already recognize some stuff you'd find in Sketchups directories.

      I was learning the sketchup API as a reason to learn Ruby >.<.

      Anyways...thanks a lot for the treasure trove of information you've just presented me...now to do something useful.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Thanks TBD.

      I just didn't pay close enough attention to your instructions...which clearly state what to do.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Oh...Wait a minute....

      I'm at work so I can't test this but.....

      Are you supposed to (For each and every piece of Ruby code you want to execute):
      (1)Put your code in normal RDE console
      (2)Execute SUB script via Toolbar->Macro->SUB

      I assumed that the bridge was a constant bridge and that you just execute it once....then input and "run" ruby code as normal in RDE.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Thanks for the pointer to Alexs stuff...I'll play with that also.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Should I separately install Ruby 1.8.6?

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Thanks for the responses.

      I am SEVERELY unfamiliar with hacking up sketchup...FYI.

      Question:
      Does Sketchup have it's own local copy of Ruby 1.8.6 etc? Or are you saying that I must use that version if I am to successfuly drive sketchup externally?

      I run code through RDE by simply typing it into the main editing window and then selecting "run" from the menu. Is that not the right way?

      I've already registered the SUB script with RDE.
      I may not be "executing" ruby code the right way. I start Sketchup with the scripts and exe in the plugins directory. I believe bridge_load.rb runs because I get a messagebox notification I put in there on purpose (for the success case). Then I start RDE. I run SUB script via toolbar->macro->SUB (I get the error about only one instance being allowed). Then I type some code into the normal box in RDE. Then I hit "run" and I get the error.

      Am I supposed to do things differently?

      I would appreciate if you laid out an exact step by step example to successfully execute a "Hello World" in a messagebox from the RDE interface.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      It seems that Sketchup is running the bridge_load script as I can get UI.messagebox statements that I put into it.

      I even get the "SketchUp Bridge already started", if I force RDE to run the macro via Macro->SUB. So it seems like something is getting executed.

      But when I go to use Sketchup.version in RDE I get C:/Users/RABIDC~1/AppData/Local/Temp/rb4126.tmp:1:in `<main>': uninitialized constant Object::Sketchup (NameError)
      Which makes me think it's not being recognized.

      I know I could have all sorts of configuration problems so let me know what you think. Ruby 192, windows 7, Sketchup 8.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Hey Dan,
      Tried to load it up...Don't know how to get it to work.

      Running latest free Sketchup version and installed RDE etc. I think I execute the script correctly via your isntructions (copied all files into plugin dir, start sketch, start RDE, register Script, run code)but nothing valueable happens. I hit "run" after I type Sketchup.version into RDE....nothing useful, just error. Could use a little help if you really are up for getting your Ruby Bridge out there.

      I'm using Sketchup 8 on Windows 7.

      Your example ruby code for the Dictspy.rb doesn't do any good without the bridge part.

      My Bridge was specifically networking...but if you get the whole shebang then I can just build ontop. Failing any further input from you I can keep working on my own interface which would be just the networking sockets.

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      @richmorin said:

      Just wanted to note my interest in this effort. I'd love to have a reliable way to send and receive data on sockets.

      However, I'm curious why you're writing the server in C++. Is there some reason why it couldn't be written in Ruby?

      Sorry I never answered this. I believe you've probably figured it out by now but Sketchup doesn't support sockets. Not in an official sense and not very well even in the hacked up unofficial sense:)...or at least...last time I looked (long time ago)

      posted in Developers' Forum
      R
      RabidCicada
    • RE: Interest in a Networking Sockets Workaround

      Thanks guys. I appreciate the help you are willing to give:).
      My motivation for doing this network bridge was because I wanted to pursue a larger project that required network comms.

      I just recently became interested in actually doing that original project again so I think I will pick this up and run with it ๐Ÿ˜„

      posted in Developers' Forum
      R
      RabidCicada