Using mysql in plugin sketchup
-
Hello, I'm new in SketchUcation, I want acceded to a mysql database in a plugin.
How to install mysql on ruby sketchup?Thanks.
Thomas.
-
-
Thank you.
I found yours !Loadpaths.rb used ruby script for windows but I can not install mysql on ruby 1.8.6 (gem install mysql) I get an error "mysql Requires Ruby version> = 1.8.7 ".
I am forced to use the same version (1.8.6) that sketchup? -
@tom40 said:
AM I forced to use the same version (1.8.6) that sketchup comes with ?
It is a good idea, but you can load another Ruby version easily on PC. (It's a bit more technical on Mac.)
See: Ruby Interpreter DLLs (Win32)
But you wouild also want to find a 1.8.7 full install to go with this.However... if you are writing a plugin for distribution, do not expect non-technical users to run SketchUp with a 1.8.7 Ruby.
-
@unknownuser said:
I want acceded to a mysql database in a plugin.
I have found that it is not worth the hassle. We instead access all such data through a WebDialog and data located remotely.
--J
-
i am writing a plugin for distribution,
do you think it is possible to import a component from a database? -
A component is a skp file that is loaded into SketchUp, from either a local directory (treated as a library,) or from a remote website.
Encapsulting skp files within another file container just adds unneeded complexity.
If you wish you CAN have a database that keeps track of the directory of components.
Advertisement