在SketchUp 上编写rb插件 的工具,无需重启SketchUp 即可预览效果和进行调试。这套工具本身作为一个插件 被开发出来,极大都方便了SketchUp 的ruby开发者们。目前更新到2.0。紫天SketchUp 中文网志上的肖老师曾对1.1版做过简单介绍,下面是截图
本站下载
Ruby Code Editor v2.0 for SketchUp
引用原作者介绍:
Description
This code editor offers an easy and visually appealing way to create and modify Ruby scripts directly within SketchUp . These scripts can then be used to create geometry, add functionality or add data within the SketchUp 3D modeling environment. TheSketchUp Ruby API" href="http://code.google.com/apis/sketchup/" target="_blank">SketchUp Ruby API provides a complete set of functions to automatize SketchUp in many ways or create scripted, computational geometry.
I created this editor mainly for two reasons: One is that when I write code, I permanently need to look up documentation. To make this easier, I added a bunch of reference webpages to a browser in a tab. Also, a dropdown above the editor contains some common code snippets that can be inserted at the current cursor position.
The other reason is that I wanted it to behave a bit more like a real code editor, so I added a bit of jQuery magic to make it look good and have some additional features. I also added the excellent CodeMirror 2.0 syntax highlighting engine. This provides the editor with multi-language code highlighting, correct TAB control, bracket matching and many more features. Just load the plugin and give it a try to see for yourself!
This editor was originally an extension of Jim Folz’s Web Consoleplugin.
At this point, this editor has the following features:
- Execute multiline Ruby code directly in SketchUp
- Open and save files
- Fast opening of large files
- Nice and clean user interface
- Tab key works as expected in editor (inserts spaces or tabs)
- Indenting of code blocks
- Dropdown with code snippets inserts snippets at cursor
- On save, a backup file can be created
- Text size dropdown selects editor font size
- Line numbering in editor
- Matching brackets highlighting
- Undo in editor
- Undo (of code execution) button next to run button
- Single undo for entire code or multiple undo steps
- Results window keeps track of history
- Reliable editor dialog resizing
- Tab and accesskey navigation
- Reference web browser for common reference websites
- Browser zoom
- Style changer for user interface
- Buttons to explore selection object properties and object attributes
- Button for direct access to the Ruby console
- Clean printing of code
- Version update checking
来源:http://www.alexschreyer.net/projects/sketchup-ruby-code-editor/


2011-12-15 09:35