Monkey (Script Editor) for Rhino4

12
回复
8943
查看
打印 上一主题 下一主题
[复制链接]

微信扫一扫 分享朋友圈

签到天数: 3044 天

连续签到: 2 天

[LV.Master]开坛元老

1
发表于 2012-5-15 12:56:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
What is Monkey?

Monkey is a new script editor in Rhino4 which can be used to edit, run, debug and compile scripts. It contains all the standard programmer editor features such as Find/Replace (with regular expressions), multi-document interface, code trees and integrated helpfiles. Monkey also comes with a separate application called the Monkey Script Compiler. This is a standalone exe which turns .rvb scripts into .rhp plugins. More information on the script compiler can be found here .
This Wiki page focuses on the features of the Monkey plugin. Monkey is a DotNET plugin meaning you need the Microsoft DotNET Framework 2.0 installed on your machine. Note that many computers already are DotNET compliant, so you only need to download and install this if Monkey doesn't run (you'll get an error message telling you when this happens).
If you are a plug-in developer and have extended RhinoScript to use your plug-in methods, then you can access your methods from Monkey. Click here for details.



Download monkey_wip_20070824.exe [1,384,735 bytes]

[url=]The Code Editor[/url]

The most important item on the Monkey Editor is the Code Editor. It is here that you make your scripts. As you can see, the editor is much more than a simple text editor (a la notepad). It performs automatic syntax parsing meaning you get properly coloured keywords, collapsable code groups which encapsulate Sub() and Function() blocks, automatic indenting, autocompletion and error highlighting. These are features that we have come to expect from any developer tool nowadays, and Monkey brings them to Rhino for the first time.

Autocompletion and parameter tips are generally grouped under the catch-phrase Intellisense . Since RhinoScript is not a strongly typed language, it is very difficult to provide a fully functional intellisense system, which is why intellisense in Monkey is limited to ”RhinoScript methods and Script Scope procedures. We may expand this functionality later on to include vbScript specific procedures and classes as well. An example of Intellisense in action can be seen below:


Note that the autocompletion list pops up as soon as “Rhino.” is typed anywhere. The list updates when you keep typing to reflect the best possible match with your current text. In this case, we want to use the Rhino.GetObject() method but we have to type at least “geto” in order to get it (Rhino.GetAngle() comes earlier in the alphabet and is the initial provided solution). Once the Rhino.GetObject() method is highlighted in the pop up list, we can simply press [Enter] and the complete method name will be inserted into the script. Once the method name is in place, we have to supply the arguments. Intellisense displays a tooltip showing us the required arguments and which one we are currently setting.

Above the code editor you will find the document tab. Monkey is multi-document capable and you can switch between documents by clicking on the appropriate tab. You can also add existing files quickly by dragging them onto the file tab. If there are too many files in the tab to be shown on a single screen, you can scroll the bar left and right by click+dragging the ◄ ► icon. Also, if you press the right mouse button on the tab, you'll get a menu with all loaded files so you can quickly locate the correct one.



该贴已经同步到 modern的微博
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏
收藏0
支持
支持0
反对
反对0
订阅 Rhino 最新资讯
回复

使用道具 举报

签到天数: 4 天

连续签到: 1 天

[LV.2]故地重游

2
发表于 2012-5-15 13:24:22 | 只看该作者
顶顶老大
回复 支持 反对

使用道具 举报

签到天数: 12 天

连续签到: 1 天

[LV.3]三顾茅庐

3
发表于 2012-5-15 13:48:37 | 只看该作者
看编程就头大{:soso_e117:}
回复 支持 反对

使用道具 举报

签到天数: 4 天

连续签到: 1 天

[LV.2]故地重游

4
发表于 2012-5-16 11:56:53 | 只看该作者
这个一直没有更新是吗~
回复 支持 反对

使用道具 举报

签到天数: 7 天

连续签到: 1 天

[LV.3]三顾茅庐

5
发表于 2012-5-26 16:05:08 | 只看该作者
强烈支持楼主ing……我只说两句……
回复 支持 反对

使用道具 举报

签到天数: 593 天

连续签到: 1 天

[LV.9]论坛支柱

6
发表于 2012-6-9 15:28:38 | 只看该作者
顶老大,好东西!!!!!
回复 支持 反对

使用道具 举报

签到天数: 631 天

连续签到: 1 天

[LV.9]论坛支柱

7
发表于 2012-6-12 09:41:09 | 只看该作者
顶M大~~~~~~~~~~~~~~~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

8
发表于 2012-7-25 08:58:12 | 只看该作者
顶一下 ,虽然没看懂。。。。
回复 支持 反对

使用道具 举报

签到天数: 4 天

连续签到: 1 天

[LV.2]故地重游

9
发表于 2012-7-25 22:53:44 | 只看该作者
M大,是脚本打包用的吗
回复 支持 反对

使用道具 举报

该用户从未签到

10
发表于 2012-8-14 11:20:40 | 只看该作者
非常有趣,大家不妨买书上网找资料学习学习script~
回复 支持 反对

使用道具 举报

该用户从未签到

11
发表于 2012-8-14 11:30:54 | 只看该作者
本帖最后由 n9f37 于 2012-8-14 11:33 编辑

刚才的帖子回复错了,非常抱歉!
回复 支持 反对

使用道具 举报

签到天数: 155 天

连续签到: 2 天

[LV.7]亲友会员

12
发表于 2012-8-29 10:54:36 | 只看该作者
终于找到了~~
回复 支持 反对

使用道具 举报

签到天数: 155 天

连续签到: 2 天

[LV.7]亲友会员

13
发表于 2012-12-11 14:09:16 | 只看该作者
有for rhino5.0的吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

15927211580

周一至周五 9:30-18:00

武汉市武昌区中山路380号201

  • 关注微信公众号

  • 微信咨询客服号

QQ- Archiver- 鄂ICP备12016959号   充值M币 |勋章中心 | ( 鄂ICP备12016959号 )

Powered by Discuz!X3.2© 2001-2013 Comsenz Inc.

金融信息行业协会理事单位 | 信息服务业行业协会会员单位 | 网络信贷服务业企业联盟单位