SketchUcation Premium Membership

 

 

[Plugin] Ruby Console+ (2.0.1) – updated 13.06.2013

[Plugin] Ruby Console+ (2.0.1) – updated 13.06.2013

Postby Aerilius » Sat Jul 07, 2012 7:21 pm

This is an extendible Ruby Console using the ace code editor with code highlighting, indentation, code folding… It supports opening multiple independent instances of the console and remembers the command history of each over sessions. Hovering an entity or point in the console will visualize it in the model.

Version: 2.0.1
Date: 13.06.2013
Requirements: Internet Explorer 8+
ae_Console_2.0.1.rbz


Usage:
Window → Ruby Console+

The buttons have the following features:
  • Clear: Clears the console output
  • Reload: Reloads current scripts. In the menu next to it you can select which scripts to reload.
  • Binding: Allows to change the context in which a command is executed from global (TOPLEVEL_BINDING) to a specific Class or instance for easier debugging. This allows you to execute private methods or access private instance variables.
  • Select Entity: Allows you to click an Entity in the model to get a reference to it in the console.
    By holding ctrl when the main window is focussed, you can select points and by holding shift you can turn on inferencing.
    You can also assign an entity to a reference name of you choice, by typing & selecting the variable name and then selecting the entity.
  • Preferences: A menu to change color theme and font size and other settings.




Previous version: 1.0.10
animation Ruby Console+ 704.gif

ae_Console_1_0_10.rbz


History:
version 2.0.0: 13.06.2013
- more robust webdialog communication (should avoid corruption of settings)
- saves history immediately and to a file and separate from the preferences. Thus issues with escaping and registry reading are avoided.
- new architecture supports several independent instances of the console
- added: Select Entity tool
- removed: JavaScript mode because it had unsolvable issues
version 1.0.10: 15.05.2013
- better support of higher dpi settings
version 1.0.9: 01.03.2013
- icon added
version 1.0.8: 03.11.2012
- removed debug messages that were left over by mistake
version 1.0.7: 27.10.2012
- improvements for initialization
version 1.0.5: 30.08.2012
- now it tracks also script errors
- better webdialog communication
- input field resizes more reliably
- inspector: highlights entities in the model
- "repeat" button: allows to quickly repeat previous input without browsing too long in the history
- after clicking buttons, the input field gains focus again
- many optimizations
version 1.0.2: 10.07.2012
- minor change: validates data before using execute_script.
version 1.0.1: 07.07.2012
Please, register (free) to access all the attachments on the forums.
Last edited by Aerilius on Thu Jun 13, 2013 10:18 pm, edited 18 times in total.
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+

Postby glro » Sat Jul 07, 2012 7:53 pm

i get error messages, and then the dialog box open but without the icons
Please, register (free) to access all the attachments on the forums.
glro
 
Posts: 135
Joined: Mon Nov 30, 2009 9:45 am
Location: Spain
Name: Georges LE ROUX
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [Plugin] Ruby Console+

Postby Aerilius » Sat Jul 07, 2012 8:05 pm

Fixed! (Packaging mistake)
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+

Postby Anton_S » Sat Jul 07, 2012 8:33 pm

Another Error
Untitled.png
Please, register (free) to access all the attachments on the forums.
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+

Postby Aerilius » Sat Jul 07, 2012 9:31 pm

I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.
You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value.
The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.
Last edited by Aerilius on Sun Jul 08, 2012 12:25 pm, edited 1 time in total.
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+

Postby Jim » Sat Jul 07, 2012 9:47 pm

Aerilius,

Nice console, thanks.

Anton,

Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.
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: [Plugin] Ruby Console+

Postby Anton_S » Sat Jul 07, 2012 11:04 pm

Jim wrote:Aerilius,

Nice console, thanks.

Anton,

Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.

LOL, did you monitor my comp?? :shock:
Exactly, I have it in tools folder. The reason is do to having 3 plugins folders: plugins draw - fredo tools+tt_lib+more, plugins game - sketchy physics, plugins testing - my plugins. I rename one of folders to plugins whenever I feel to use one of them. I jst wanted to eliminate the loading of all "plugins", and use the plugins that I want instead of loading all plugins. For me, the tools folder is like the "main plugins". Ruby console, window settings... is a good place for them - cause I use them in all plugins.

Well, anyways thanks for pointing that out: moving it to plugins
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+

Postby Anton_S » Mon Jul 09, 2012 4:49 am

Jim wrote:Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.


Hmm... it still gives me that error!

Aerilius wrote:I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value. The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.


Errased, the beta, and all version, including this one, ran CCleaner, I guess I got it all removed using regedit, and it still gives me that error. How should error exist, when I cleaned-up after beta?
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+

Postby Aerilius » Mon Jul 09, 2012 12:41 pm

CCleaner doesn't do magic. I does a lot but I would be surprised if it (only) deleted HKEY_CURRENT_USER\Software\Google\SketchUp 8\Plugins_ae\Console.
The problem is that the only way to bring data from Ruby to SketchUp (execute_script) doesn't handle invalid data, it can't catch and suppress parsing errors.
I have a new version where I validate the data on the Ruby side before I pass it to the WebDialog. I'll upload it soon
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+

Postby Anton_S » Tue Jul 10, 2012 1:08 am

Aerilius wrote:...upload it soon

That'll be great :!:
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+

Postby Aerilius » Tue Jul 10, 2012 4:09 pm

I uploaded a preliminary with the fix (1.0.2) to prevent this script error. I wanted to use my new webdialog communication system, but that isn't finished yet. It will come later.
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+

Postby Anton_S » Thu Jul 12, 2012 1:59 am

Aerilius wrote:I uploaded...

Good, good!! Thks :)
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+

Postby alexschreyer » Mon Jul 23, 2012 2:19 pm

Ruby console on steroids! Very nice.

Cheers,
Alex
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Aerilius » Sat Sep 01, 2012 5:30 pm

New features added:
inspector for SketchUp entities and many little improvements.
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Anton_S » Sat Sep 01, 2012 8:19 pm

Thankyou, thnakyou, thankyou!!!
I use it all the time :thumb:
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.5

Postby Dan Rathbun » Sat Sep 01, 2012 11:09 pm

I have sizing issues on XP w/ IE8 installed. (SU v8.0M4)
Please, register (free) to access all the attachments on the forums.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4146
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Aerilius » Sun Sep 02, 2012 7:45 am

That is not (only) a sizing issue, the JavaScript does not run. Maybe something in the WebDialog-Ruby communication goes wrong and does not call the initialize() function?
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby Reind Brackman » Sat Sep 15, 2012 12:59 am

Just installed Ruby Console+ and my productivity doubled already.
Also very good to avoid RSI, better known as 'lets load the damn script again command...'
Thanks - great work.
Reind Brackman
 
Posts: 6
Joined: Sun Sep 09, 2012 11:52 am
Name: Reind Brackman

Re: [Plugin] Ruby Console+ – 1.0.5 – updated 30.08.2012

Postby cesaro36 » Fri Oct 26, 2012 10:19 pm

Hi
Could anyone solve this issue?
Please, register (free) to access all the attachments on the forums.
cesaro36
 
Posts: 2
Joined: Sat Jul 18, 2009 7:29 pm
Name: Cesar Navarro

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Aerilius » Sat Oct 27, 2012 3:48 pm

What same problem? What browser? What version of the plugin?
Can you try the latest version?
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby rami_lpm » Tue Oct 30, 2012 7:58 pm

All I'm getting is this.
screenshot.jpg

Win Vista Business 64
Java 7 update 7
IE 7 <--- is this a problem?
Please, register (free) to access all the attachments on the forums.
User avatar
rami_lpm
 
Posts: 19
Joined: Sat Apr 04, 2009 12:24 am
Location: Argentina
Name: Ramiro
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Aerilius » Tue Oct 30, 2012 8:24 pm

That might be the problem.
Requirements:
for now, it works only in the Windows version of SketchUp (IE8, IE9)

(Does Internet Explorer 7 run on Vista??)
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby rami_lpm » Tue Oct 30, 2012 8:57 pm

Was that 'requirements' line there all the time?
Yes, IE7 was installed with my spanish version.

I upgraded and it works fine.
User avatar
rami_lpm
 
Posts: 19
Joined: Sat Apr 04, 2009 12:24 am
Location: Argentina
Name: Ramiro
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Anton_S » Sat Nov 03, 2012 9:08 pm

I had the same problem as in the posts before. To resolve the problem you must delete the registry of original Ruby Console +: (Windows 7)

  • Go to start menu and search, and open regedit.exe.
  • Locate registry path: Computer\HKEY_CURRENT_USER\Software\Google\SketchUp[n]\
  • Delete the following folders and registry:
    1. .\Extensions\Ruby Console+[ver]
    2. .\Plugins_ae\Console
    3. .\WebDialog_AE_Console


After delete, it must work!
On other windows versions, the registry might be in similiar named locations.
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Anton_S » Sat Nov 03, 2012 9:30 pm

Other than the registry the ruby console is outstanding! :ecstatic:
Highligh entities, beatiful script highlightings, fast processing, and much more. :thumb:

I only had to go to Plugins\ae_Console\jQuery\jquery-console-extensions.js and comment out all the DEBUG "puts" sections -- It disturbed me posting "resizing", and "finish resizing".

Now the wish! Is there a way to add a "clear history" button, so it clears all the console history input queue? To clear, i can go to registry and clear it out manually, although it would be nice to have a button.
Anton_S
 
Posts: 239
Joined: Tue Nov 23, 2010 9:15 pm
Location: Salem Oregon US
Name: AntonSynytsia
Operating system: Windows
SketchUp version: 2013
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Chris Fullmer » Sat Nov 03, 2012 10:31 pm

I'm so glad you explained how to remove all the resizing puts statements. I just installed this and I was already ready to never use it again until that was fixed.

Otherwise pretty cool. Thanks!

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6758
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby rami_lpm » Mon Nov 05, 2012 2:22 pm

Thanks Anton, this was bothering me too.
User avatar
rami_lpm
 
Posts: 19
Joined: Sat Apr 04, 2009 12:24 am
Location: Argentina
Name: Ramiro
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Ruby Console+ – 1.0.7 – updated 27.10.2012

Postby Aerilius » Mon Nov 05, 2012 4:37 pm

Sorry for that mistake, I fixed it!
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ (1.0.9) – updated 01.03.2013

Postby Aerilius » Fri Mar 01, 2013 3:51 am

Minor update (1.0.9):
- added icon
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

Re: [Plugin] Ruby Console+ (1.0.10) – updated 15.05.2013

Postby Aerilius » Wed May 15, 2013 3:20 am

I added improvements for higher dpi settings.
Aerilius
Top SketchUcator
 
Posts: 1177
Joined: Tue Dec 23, 2008 11:00 pm
Location: Kaiserslautern
Name: Aerilius

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: gksl4, Google Feedfetcher and 8 guests