SketchUp Bridge is an interface developed by TBD to allow ruby scripts to be executed from outside of SketchUp.
SketchUp Bridge is used by Ruby developers to make it easier to edit and test new ruby scripts.
TBD has agreed that we can duplicate his installation Tutorial here on the SuWiki.
- Download and install RDE
- Download Bridge
- Unpack bridge.so, bridge_load.rb and SUB.exe to SketchUp plugins directory
- Restart SketchUp
- Start RDE
- Goto Macro | Register Script
- Click Add
- Modify to look like the image on the right.
- You can set the keyboard shortcut. I use Alt+F1
- Close all configuration windows (OK and then Close)
- Type your code in RDE window (like Sketchup.version) and press your keyboard shortcut to send the code to SketchUp (Alt+F1)
- You can also load .rb scripts into RDE and use (Alt+F1) to load and execute the entire script in SketchUp
Output from executing "SketchUp.version"
- If you use print, p, puts commands than check the Ruby Console for output
- Using UI.messagebox will timeout Bridge as long as messagbox is active on screen
- Select all text and press CTRL+M to format the source (ident)
- If you are running more than one instance of SketchUp. The SketchUp bridge will execute commands in only one instance at a time in version 1.0. Please download version 1.1 that allows only one Bridge instance to be created.
Render Plus August 18, 2007