• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Connecting to SQLite3

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 3 Posters 320 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jmjira
    last edited by 3 Feb 2010, 20:55

    Hello:

    I have searched around and have not found any information on connecting SketchUp to SQLite3. I was hoping that you-all could point me in the right direction. I'd like to write a ruby script for a pipe flange and rather than input the dimensions of the flange (pipe size, thickness, outside diameter...) I'd like to use SQLite3 to retrieve those values base on the pipe size. So, I'd enter 4" and with that I'd connect and query the database to retrieve the values for the thickness and diameter.

    Any ideas or even if something like that is possible within a ruby script?

    Thanks

    Joe

    1 Reply Last reply Reply Quote 0
    • D Offline
      dominikh
      last edited by 7 Feb 2010, 01:43

      If this was pure Ruby, you would install the sqlite3-ruby gem (http://gemcutter.org/gems/sqlite3-ruby ), which requires the sqlite3 header files to compile and a more recent version of Ruby.

      I think the only solution for SketchUp is to find a sqlite binary and write wrapper classes around that one (I really doubt that there's a ready solution for that already).

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by 7 Feb 2010, 02:54

        @jmjira said:

        Hello:
        I'd like to write a ruby script for a pipe flange and rather than input the dimensions of the flange (pipe size, thickness, outside diameter...)

        Thanks

        Joe

        Sorry can't help with the coding stuff, have you tried engineeringtoolbox.rb

        Link Preview Image
        Home

        EngineeringToolBox - Sketchup Edition

        favicon

        (sketchup.engineeringtoolbox.com)

        or the piping ruby at

        Not Found

        favicon

        (www.3skeng.com)

        both work and are free

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement