It is currently Thu Sep 02, 2010 9:56 pm

Registration
Login Help

Advertise Here

SU Ruby Cheat-sheet

FAQMembersRegisterLogin

SU Ruby Cheat-sheet

Postby alexschreyer on Mon Sep 28, 2009 5:35 am

I like working with cheat-sheets. Although the online API docs (and Jim's offline docs) are great, I wanted something printable and concise, too. So here it is. Hope it helps others, too.

http://www.alexschreyer.net/cad/sketchup-ruby-api-cheatsheet/

Please suggest improvements!

Cheers,
Alex
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby RunnerPack on Mon Sep 28, 2009 9:43 am

Overall, it looks very nice. Thanks for sharing!

I do see quite a few duplicates, though. Maybe if they were removed it could be printed on fewer sheets.

BTW, what program(s)/techniques were used to make this?
You might have noticed... I'm a bit of a ferpectionist.
RunnerPack
 
Posts: 29
Joined: Wed Apr 29, 2009 9:22 am
Location: Springfield, MO
Name: Amos
Operating system: Windows XP Pro SP3
SketchUp version: 7.1.6860

Re: SU Ruby Cheat-sheet

Postby alexschreyer on Mon Sep 28, 2009 4:16 pm

Duh! I should have read this over before posting. Thanks, RunnerPack for the tip. The duplicates are now removed and everything fits nicely on 5 pages.

I'll make another version soon that is even more condensed. I like this layout, though, because I can add something to each line.

what program(s)/techniques were used to make this?


I like using PSPad for coding. I used its "find in files" to iterate over Jim's download and then used a simple RegEx find and replace to extract the lines. The final document is a four-column word layout.

Cheers,
Alex
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby Jim on Mon Sep 28, 2009 4:18 pm

Didn't someone put all this in a mind map?
I probably over-simplified that.
sketchup plugins & news blog
Jim
 
Posts: 2876
Joined: Mon Nov 12, 2007 10:13 pm
Name: Jim Foltz
Operating system: XP Pro SP3
SketchUp version: Google Pro 8.0

Re: SU Ruby Cheat-sheet

Postby remus on Mon Sep 28, 2009 4:28 pm

You thinking of Scotts objects diagram? http://code.google.com/apis/sketchup/docs/diagram.html

If so it only has classes and observers, not methods.
User avatar
remus
Global Moderator
 
Posts: 7995
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus
Operating system: vista
SketchUp version: 7.whatever

Re: SU Ruby Cheat-sheet

Postby alexschreyer on Tue Sep 29, 2009 3:03 pm

I made another version of the same sheet. This one is more condensed and prints on three pages.

http://www.alexschreyer.net/cad/sketchu ... heatsheet/

I think it would be a great addition to a cheat sheet to have a sample mini-plugin added as well. Is there already an accepted "framework" out there?

Cheers,
Alex
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby Jim on Thu Oct 15, 2009 2:55 am

I wonder how it would look in a compact little WebDialog.
I probably over-simplified that.
sketchup plugins & news blog
Jim
 
Posts: 2876
Joined: Mon Nov 12, 2007 10:13 pm
Name: Jim Foltz
Operating system: XP Pro SP3
SketchUp version: Google Pro 8.0

Re: SU Ruby Cheat-sheet

Postby chrisglasier on Thu Oct 15, 2009 3:07 am

Jim wrote:I wonder how it would look in a compact little WebDialog.


... a compact animated little WebDialog like this perhaps, where coding terminology is substituted for names of real objects and groupings:
Basic machine.png
You do not have the required permissions to view the files attached to this post.
User avatar
chrisglasier
 
Posts: 819
Joined: Tue Jun 03, 2008 9:11 am
Location: Pearl River Delta
Name: Chris Glasier
Operating system: XP SP2
SketchUp version: 7 (Free)

Re: SU Ruby Cheat-sheet

Postby alexschreyer on Thu Oct 15, 2009 4:03 am

Good idea to put it into a webdialog. Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.

FYI: I updated the cheatsheet for the new (7.1) functions.

Cheers,
Alex
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby chrisglasier on Thu Oct 15, 2009 6:50 am

alexschreyer wrote: ... Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.


I think it possible to double click on a machine name to insert into your webconsole. Perhaps we can "discuss" over the newly-found collaborative editor?

Chris
User avatar
chrisglasier
 
Posts: 819
Joined: Tue Jun 03, 2008 9:11 am
Location: Pearl River Delta
Name: Chris Glasier
Operating system: XP SP2
SketchUp version: 7 (Free)

Re: SU Ruby Cheat-sheet

Postby Jim on Sat Oct 17, 2009 3:48 pm

alexschreyer wrote:Good idea to put it into a webdialog. Actually, Jim, you could add a list of objects/methods to your webconsole and make those clickable so that they automatically get inserted into the editor.


Alex, can you share the data used for the cheat-sheet? It would save some work for sure. Chris Glasier and I would like to experiment with creating a dialog.
I probably over-simplified that.
sketchup plugins & news blog
Jim
 
Posts: 2876
Joined: Mon Nov 12, 2007 10:13 pm
Name: Jim Foltz
Operating system: XP Pro SP3
SketchUp version: Google Pro 8.0

Re: SU Ruby Cheat-sheet

Postby alexschreyer on Sun Oct 18, 2009 1:32 pm

Great to hear you want to try this out. I'll post a text file with the entire list later today.

Cheers, Alex
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby alexschreyer on Sun Oct 18, 2009 7:46 pm

Here ya go. This file is the 7.0 list, so you'll have to add the new functions.

Cheers,
Alex
You do not have the required permissions to view the files attached to this post.
-------------------------------------------------
web > http://www.alexschreyer.net/cad/
User avatar
alexschreyer
 
Posts: 92
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Win XP
SketchUp version: 7

Re: SU Ruby Cheat-sheet

Postby chrisglasier on Mon Oct 19, 2009 5:37 am

Web dialog people please see this post.
User avatar
chrisglasier
 
Posts: 819
Joined: Tue Jun 03, 2008 9:11 am
Location: Pearl River Delta
Name: Chris Glasier
Operating system: XP SP2
SketchUp version: 7 (Free)

Re: SU Ruby Cheat-sheet

Postby chrisglasier on Mon Oct 19, 2009 10:14 am

First UI combo.png


Here is a first shot at marrying the looks and basic funtionality of a screen machine with Jim's web console.

Both are separate and both can be moved and resized independently.

The console's textareas are set proportionately but the menu space is fixed. Perhaps there could be another menu item for preferences and another to open the machine. Both are cosmetic.

I think the machine will have three columns to start with:

1 - Display options - abc, frequently used, switch, console display options (parent, words, snippets, comments, complaints - the menu in the console would need to change to suit). Maybe display options could be done with tabs in the console but they will take needed space.
2 - Classes
3 - Methods

The columns of course move so no need for scrollbars.

But all can be changed!

edit: added: http://collabedit.com/display?id=38563
You do not have the required permissions to view the files attached to this post.
User avatar
chrisglasier
 
Posts: 819
Joined: Tue Jun 03, 2008 9:11 am
Location: Pearl River Delta
Name: Chris Glasier
Operating system: XP SP2
SketchUp version: 7 (Free)

SketchUcation One-Liner Adverts

by Ad Machine on 5 minutes ago

V-Ray for SketchUp - Take your SketchUp Renders to the next level
Ad Machine
Robot
 
Posts: 2010

Next

 

Advertise Here

Who is online

Users browsing this forum: No registered users and 4 guests