SketchUcation Plugin Store

 

 

SketchUp-Ruby Resources

Re: SketchUp-Ruby Resources

Postby Dan Rathbun » Wed Sep 08, 2010 11:35 am

thomthom wrote:Very nice list Dan!

Thanks.. (but I didn't find all these myself.) I had it posted over at GG, but it kept getting farther down the topic stack. Over here I know right where it is, and can format it.

thomthom wrote:This one looks very interesting.

Jim found that one.

P.S. - @Jim your free to cut and paste anything from here to the top of the thread.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4077
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Ruby Interpreter DLLs (Win32)

Postby Dan Rathbun » Fri Oct 01, 2010 7:06 am


Ruby Interpreter DLLs (Win32)

Instructions: (Win32 ONLY)

Navigate (Explore) on your computer, to the Google Sketchup application folder, and ...

  1. Backup the current "Deceased" 1.8.0 dll, msvcrt-ruby18.dll by renaming it:
    • msvcrt-ruby180_p0.dll
    • or similar if it's a newer version. For example, if the old dll is v1.8.6-p287, then rename it msvcrt-ruby186_p287.dll
  2. Download your choice of a newer version Ruby Interpreter Win32 DLL (below)

  3. Make a copy of the new file and name it: msvcrt-ruby18.dll
      (Sketchup is hardcoded to load this DLL filename.)


1.8.0
OBSOLETE


ruby-1.8.0-p0-i386-mswin32-dll.zip


1.8.1 .. 1.8.4
OBSOLETE


1.8.1 thru 1.8.4 are obsolete (no sense posting them.)


1.8.5
OBSOLETE


ruby-1.8.5-p0-i386-mswin32-dll.zip

ruby-1.8.5-p231-i386-mswin32-dll.zip


1.8.6
STABLE (but aging.)


ruby-1.8.6-p287-i386-mswin32-dll.zip

ruby-1.8.6-p369-i386-mswin32-dll.zip


1.8.7
STABLE (current)


ruby-1.8.7-p299-i386-mswin32-dll.zip

ruby-1.8.7-p302-i386-mswin32-dll.zip

ruby-1.8.7-p330-i386-mswin32-dll.zip



Please, register (free) to access all the attachments on the forums.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4077
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: SketchUp-Ruby Resources

Postby Dan Rathbun » Wed Dec 29, 2010 6:48 am


UPDATES / ADDITIONS (in this topic.)


Ruby Interpreter DLLs (Win32)

Edited Instructions to be more clear and precise.

Added DLL for:
  • latest Ruby v 1.8.7 p330


RUBY PROGRAMMING REFERENCES - CHM format

Added CHMs for:
  • latest Ruby v 1.8.7 p330
  • latest Ruby v 1.9.2 p136

User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4077
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Ruby Newbie's Guide to Getting Started

Postby Dan Rathbun » Wed Jan 05, 2011 10:28 pm


Ruby Newbie's Guide to Getting Started

Go to this post... Ruby Resources

(1) make a checklist of all the Tutorials, and go thru them 1 by 1, and check them off the list as you do.

(2) make a checklist of all the free downloadable books, and down load them one by one. Put them in a folder on your Desktop (or whereever you can find them easily.) And read them.

(3) For Standard ruby Reference, get the CHM for Ruby 1.8.6 here, put it in this same folder.

Get comfortable with Standard Ruby. When your ready to script for Sketchup:

(4) On the Reference list (link above,) go to the Sketchup Specific section, and download Alex's Cheatsheet, and bookmark the Google Sketchup API document website. (You'll be referencing it a lot.) It has the methods for the modules and classes for 'talking' to Sketchup, and manipulating it's models.

(5) Go through all the available Sketchup Ruby tutorials (on the list.)

(6) Read the code examples in your plugins/Examples folder.

(7) Have fun. Start fooling around with Ruby under Sketchup. Usually the best thing is to start by customizing the examples.

(8) Whenever you have questions, come back to this forum, and first do a search (it's likely your question has already been asked.) If not.. start a new topic (make the the topic title simple but informative... a shortened version of your question. Don't make it "Help Me!", that does not work well.)

(9) Before going into advanced Sketchup scripting, download more advanced plugins from the plugins forum (or other websites.. see the Resource list,) and examine them. See how they did things. This the best way to learn how to do things right. If you have a question about why an author did something a certain way... you can either Private Message them, or see if there is a discussion topic specific to their plugin, here in the Developer's forum, and post a question at the end of that topic. If no topic exists, create one by putting the plugin name in square brackets following by 'coding questions.' Please don't ask coding questions in the Plugin distribution topic of the Plugins forum. Ask them here in the Developers forum.

And ... welcome to the world of Ruby !
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4077
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: SketchUp-Ruby Resources

Postby Jim » Sun Oct 30, 2011 12:30 pm

This site has many videos of Ruby talks recorded at various Ruby Conferences - http://confreaks.net

Some good stuff there - if you can find them...
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: SketchUp-Ruby Resources

Postby rricon » Sun Dec 18, 2011 5:23 am

Hello,

Where to find the .h file of msvcrt-ruby18.dll file ?

Regards,
rricon
 
Posts: 2
Joined: Sun Dec 18, 2011 1:44 am
Name: ROLANDO

Re: SketchUp-Ruby Resources

Postby Dan Rathbun » Sun Dec 18, 2011 8:54 am

rricon wrote:Where to find the .h file of msvcrt-ruby18.dll file ?

In the source:
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p287.zip
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4077
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

[doc] Programming Ruby (The "Pick-Axe" Book)

Postby Dan Rathbun » Sat Sep 29, 2012 3:29 am

    book: "Programming Ruby - The Pragmatic Programmer's Guide"
    Copyright © 2000 Addison Wesley Longman, Inc.

    ProgrammingRuby.zip

    Released under the terms of the Open Publication License V1.0.

    :ugeek:
    Please, register (free) to access all the attachments on the forums.
    User avatar
    Dan Rathbun
    Top SketchUcator
     
    Posts: 4077
    Joined: Tue Oct 06, 2009 3:06 am
    Location: Florida, USA
    Name: Dan Rathbun
    Operating system: Windows
    SketchUp version: 8
    License type: Pro
    SketchUp use: education
    Level of SketchUp: Advanced

    Re: SketchUp-Ruby Resources

    Postby Todd Burch » Wed Oct 24, 2012 5:48 pm

    Chunky Bacon. I didn't see a link for Why's Poignant Guide to Ruby. A true classic.

    http://mislav.uniqpath.com/poignant-gui ... ter-1.html
    Todd Burch
     
    Posts: 909
    Joined: Mon Nov 12, 2007 2:43 pm
    Location: Katy, Texas

    Re: SketchUp-Ruby Resources

    Postby Dan Rathbun » Fri Nov 09, 2012 7:53 pm

    User avatar
    Dan Rathbun
    Top SketchUcator
     
    Posts: 4077
    Joined: Tue Oct 06, 2009 3:06 am
    Location: Florida, USA
    Name: Dan Rathbun
    Operating system: Windows
    SketchUp version: 8
    License type: Pro
    SketchUp use: education
    Level of SketchUp: Advanced

    Re: SketchUp-Ruby Resources

    Postby mptak » Mon Dec 03, 2012 3:07 am

    http://rubyjs.org/

    Javascript implementation of Ruby. For what its worth.
    mptak
     
    Posts: 118
    Joined: Tue Dec 25, 2007 10:57 pm
    Location: Wisconsin in the US

    SketchUcation One-Liner Adverts

    by Ad Machine » 5 minutes ago

    Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

    Ad Machine
    Robot
     
    Posts: 2012


    Return to Developers' Forum

    Who is online

    Users browsing this forum: No registered users and 6 guests