Tutorial: GoogleSketchup+Arduino = Best Simulation ever

Hello my name is Gustavo iam from Brazil and..... My english sux sorry
I did a script for Sketchup to communicate with the arduino using serial port and it was great for prototypes.
But it has a unique problem, I do not know how to send variables from Ruby to arduino, I'm thinking a solution, if anyone knows please help. Watch the video.

  1. Download o Sketchup 8.0.

  2. Download plugin Sketchyphysics 3.2 .
    Google Code Archive - Long-term storage for Google Code Project Hosting.

  3. Download Plugin Supy: used to run python code inside SketchUp.
    http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/

  4. Download Python 2.5.
    http://www.python.org/getit/releases/2.5/

  5. Download lib serial for python : Pyserial 2.5.
    Python Serial Port Extension - Browse /pyserial at SourceForge.net

  6. If you want download webdialog plugin for sketchup.

  7. Install everything! its easy!

8)Disable DTR on serialwin32.py
Search on python2.5 folder...
change this values...
self._dtrState = win32.DTR_CONTROL_ENABLE
to
self._dtrState = win32.DTR_CONTROL_DISABLE

dont understand?
http://wp.yellowkazoo.com/?p=177

CodigoArduino.ino (1013 Bytes)

teste.skp (86.6 KB)

Arduino Playground - Ruby >> serialport gem

i am really wondered what your goal is here, manipulate inside google sketchup to control an arduino object ?