×
热门分类
微信扫码登陆

QQ登录

只需一步,快速开始

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即加入SketchUp吧! 微信扫码登陆

x


SketchUp的rb爱好者有福了
SketchUp 上编写rb插件 的工具,无需重启SketchUp 即可预览效果和进行调试。这套工具本身作为一个插件 被开发出来,极大都方便了SketchUp 的ruby开发者们。目前更新到2.0。紫天SketchUp 中文网志上的肖老师曾对1.1版做过简单介绍,下面是截图
ruby_code_editor_v20_01.jpg
ruby_code_editor_v20_02.jpg

Ruby_Code_Editor_v20_theaven.info.rar (152.87 KB, 下载次数: 72)
引用原作者介绍:

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 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


本贴附件下载

Ruby_Code_Editor_v20_theaven.info.rar

152.87 KB , 吧币: 200 , 请登陆后再进行下载!

赞赏

3

查看全部评分

SUAPP3.4

精彩评论

文明上网理性发言、请文明用语

0

主题

2

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
sunnyzczc 2015-1-29 19:15:12
这个想要,自己编试下

0

主题

8

帖子

2

红宝石

SU入学(等级1)

Rank: 1

红宝石
2

积极讨论奖

wxgame 2020-5-2 13:44:41
这个想要,自己编试下

0

主题

2

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
梦天木门 2024-11-10 09:22:41
wxgame 发表于 2020-5-2 13:44
这个想要,自己编试下

4年后的回答,用RubyMine配合Sketchup Ruby爽的很,Ruby Edit Code这种不要用
高级模式
您需要登录后才可以回帖 登录 | 立即加入SketchUp吧! 微信扫码登陆

本版积分规则

cslrlyc

SU有智(等级8)

  • 主题

    34

  • 吧币

    92559

  • 红宝石

    321

关闭

站长推荐上一条 /1 下一条

发布主题 快速回复 返回列表 客服中心 搜索 官方QQ群
关于我们/小黑屋/手机app/国土人/SketchUp吧 /京ICP备16008035号/