[Plugin] SUTool: a new way to manager your RB script

[Plugin] SUTool: a new way to manager your RB script

Postby wikii » Tue Feb 05, 2008 1:58 am

Add a RB script to:
Drop down menu? difficult to use~
Toolbar? cost a lot screen area to display~
Context menu? it is already too long~

SUTool organises RB scripts in a AutoCAD_screen_menu_like sidemenu ,as the Gif show.

SUTool v0.06 has ability to add in a new RB script automatically,as the Gif show.

In chinese:
SUTool是一个以类似CAD屏幕菜单方式组织SU插件的工具,用户可以通过自定义INI文件,增加或者减少项目。让大家能够方便的管理自己喜欢的插件!

SUTool v0.06 可以自动添加新的插件:直接对RB文件进行分析,并将其中的命令自动添加到用户指定的ini文件中,只需Reload SUT一下,即可使用新的插件。 注意,被分析的RB文件不要放在含有中文字符的路径下,比如桌面。
0
Last edited by wikii on Mon Feb 11, 2008 1:01 pm, edited 1 time in total.

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby wikii » Tue Feb 05, 2008 4:18 am

here SUTool v0.08 comes.
0
Last edited by wikii on Mon Feb 11, 2008 1:00 pm, edited 1 time in total.

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby juju » Tue Feb 05, 2008 9:27 am

wikii, welcome to the forum and thanks for the contribution.

A quick note. You'll see there is a section called "Ruby Scripts Depository". Please open a new thread there and post the ruby script and a description of what it does / is to be used. We keep the depository for scripts only, this section (ruby discussions) is for, well, ruby discussions.

Posting the script in the depository helps keep everything organized.
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: SUTool----a new way to manager your RB script

Postby CPhillips » Tue Feb 05, 2008 9:45 am

wikii wrote:Add a RB script to:
Drop down menu? difficult to use~
Toolbar? cost a lot screen area to display~
Context menu? it is already too long~

SUTool organises RB scripts in a AutoCAD_screen_menu_like sidemenu ,as the Gif show.

SUTool v0.06 has ability to add in a new RB script automatically,as the Gif show.

In chinese:
SUTool是一个以类似CAD屏幕菜单方式组织SU插件的工具,用户可以通过自定义INI文件,增加或者减少项目。让大家能够方便的管理自己喜欢的插件!

SUTool v0.06 可以自动添加新的插件:直接对RB文件进行分析,并将其中的命令自动添加到用户指定的ini文件中,只需Reload SUT一下,即可使用新的插件。 注意,被分析的RB文件不要放在含有中文字符的路径下,比如桌面。


Looks like it could be a nice script. Can anyone translate?

Chris
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Tue Feb 05, 2008 12:42 pm

I try to install but when i restart SketchUp a pop-up window says that can´t find "inconv.dll". Reinstalling SketchUp can solve the problem.

Daniel S
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby wikii » Tue Feb 05, 2008 2:53 pm

Do you copy RUTool folder, in the rar file ,to SketchUp's plugins?
0

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Tue Feb 05, 2008 3:01 pm

Yes.. i have the SuTool folder and the SUTool.rbs in the SketchUp´s Plugins
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby wikii » Tue Feb 05, 2008 5:24 pm

Try to copy iconv.so(in plugins\sutool\ro\) to plugins folder...
0

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby zuosiyang » Tue Feb 05, 2008 5:55 pm

haha ...wikii....you... i'm orange
0

zuosiyang 
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Tue Feb 05, 2008 6:50 pm

wikii wrote:Try to copy iconv.so(in plugins\sutool\ro\) to plugins folder...


The problem is still the missing "inconv.dll". Someone has the same problem?? Perhaps it´s only me.

Daniel S
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Tue Feb 05, 2008 11:02 pm

Daniel S wrote:
wikii wrote:Try to copy iconv.so(in plugins\sutool\ro\) to plugins folder...


The problem is still the missing "inconv.dll". Someone has the same problem?? Perhaps it´s only me.

Daniel S


iconv.dll comes when you install the full Ruby language. I have uploaded it here, but I'm not sure where to tell you to put it - I would try in the SUTools folder first, or the Plugins folder. It might not work at all.

The plugin works well for me. I will write up a quick How-to.
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Tue Feb 05, 2008 11:23 pm

wikii,

This is a very nice plugin.

I would like to make a suggestion: can you make the tool window so it remembers it's size?
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby wikii » Wed Feb 06, 2008 1:05 am

Jim
WebDialog has no methods to get the window's position, :(
I hava tried to get screen size using JavaScript in html with get_element_value methods,it can work in SU ruby panel.

In html:
<script language="javascript">
document.write('<div style="display:none;" ><input type="text" name="textfield" id="screen_width" style="width:150px;" value="'+ screen.width + '" /></div>')</javascript>


In rb program:
$dlg.get_element_value "screen.width"


when the program is running, $dlg.get_element_value "screen.width" always get nothing;but in ruby panel,$dlg.get_element_value "screen.width" return "1680",that's exact my screen width!
If somebody can tell me why and give me some advice, SUTool will go farther.

If not, I will add a setting file to SUTool.User can modify it manually.

Another question,Jim,have you installed the full Ruby language?
0
Last edited by wikii on Wed Feb 06, 2008 1:10 am, edited 1 time in total.

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby wikii » Wed Feb 06, 2008 1:07 am

zuosiyang wrote:haha ...wikii....you... i'm orange


Hi,Fly_Orange.. :ecstatic:
0

wikii 
PluginStore Author
PluginStore Author
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Wed Feb 06, 2008 1:21 am

wikii,


Yes, I have installed the full Ruby language installation.

The WebDialog should remember it's location if you have provided it the "preferences_key" option. Just don't call the set_size method and it should use the last size and location automatically.
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Wed Feb 06, 2008 1:33 am

Jim wrote:iconv.dll comes when you install the full Ruby language. I have uploaded it here, but I'm not sure where to tell you to put it - I would try in the SUTools folder first, or the Plugins folder. It might not work at all.

The plugin works well for me. I will write up a quick How-to.


Thank you Jim!!! I don´t get the error when i put the iconv.dll in the plugins folder.
But i cannot find how to start the webdialog... is not on plugins.. tools... nowhere?

Thank you again,
Daniel S
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Wed Feb 06, 2008 1:37 am

Daniel,

It should be in the Plugins menu:

02_menu.jpg
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Wed Feb 06, 2008 1:56 am

Not in my plugins menu..
Perhaps is because i have not installed the full Ruby language :roll:

Daniel S
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Wed Feb 06, 2008 3:05 am

Daniel S wrote:Not in my plugins menu..
Perhaps is because i have not installed the full Ruby language :roll:

Daniel S


The iconv.dll and iconv.so files are used for converting or translating strings. I think if you edit the convert.rb file in the RO folder you can make it work.

Code: Select all
#require "iconv"
def sutool_convert_string(s)
 # Iconv.iconv("GB2312//IGNORE","uTF-8//IGNORE",s)[0]
  s
end
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby Daniel S » Wed Feb 06, 2008 11:32 am

Thank you Jim!!!! Now is working!!! :ecstatic:

And i try removing the iconv.dll and works too... the problem was the convert.rb code.

Now i have to see how to add the plugins :D

Thank you again!!
Daniel S

EDIT: the iconv.dll is needed.. if you open more than one sketchup it pop-up a msg. With the .dll in the plugins folder all works fine.
0

Daniel S 
 

Re: SUTool----a new way to manager your RB script

Postby Jim » Wed Feb 06, 2008 12:36 pm

This plugin is really good for all those "other", infrequently used plugins you use.

You can create any number of dropdown menus. The menus are controlled by .ini files - one for each menu.

In the SuTools folder there is a sub-folder named "ini" Inside are the files that the plugin uses to create each menu. Each ini file start with a 2-digit code - the code goves the order of the menus in the plugin dialog. The 2-digit code is followed by the menu name.
Code: Select all
01SelectTool.ini
02FaceTools.ini
...


Before you begin adding plugins, you can create your own personal menu list. Just create a new, blank file using the ##Name.ini code.

When you reload SuTools plugin, your menu will be available.
0
Hi

Jim 
Global Moderator
 

Re: SUTool----a new way to manager your RB script

Postby bianhai » Thu Feb 07, 2008 3:31 am

wellcome to http://www.sketchupbbs.com
Look this page:
http://www.sketchupbbs.com/viewthread.p ... a=page%3D1

简介:
SUTool是一个以类似CAD屏幕菜单方式组织SU插件的工具,用户可以通过自定义INI文件,增加或者减少项目。让大家能够方便的管理自己喜欢的插件!


只支持SU6版本,使用SU5的朋友请不要下载~




SUTool不是一个插件工具集,它是一个插件管理器,使用者可以用它添加、删除、调整组织方式。


安装:
将SUTool.rbs和SUTool文件夹复制到SU的Plugins文件夹下,重启SU,点击Plugins菜单下的SUTool即可。


更新记录


20080310 发布 v0.25版


1 支持在ini文件中直接为插件定义快捷键


2 增强了编辑插件的功能


3 支持直接双击分组标签打开ini文件


4 修正0.24版的几个BUG


5 安装方法:由于更新幅度较大,需要删除plugins目录下所有SUT开头的文件及文件夹,将下载的压缩包中的文件和文件夹直接复制到plugins目录下,重启SU。


20080304 发布 v0.19版


1 可以直接将一组工具生成工具条,前提是为每个工具定制相应的图标文件。


2 顶端增加SketchupBBS的logo


3 支持RBS文件


4 几乎包含了目前常用的插件。


20080226 发布 v0.12版


1 修复了几个bug;


2 可以显示插件收集人自定义的信息;


3 以后只更新主程序,希望大家能够自己管理组织自己的SU插件。


鉴于部分坛友态度,下载售价设定为10U币


20080211 发布 v0.08版


1 修正了2个BUG,感谢sfancys和zyc7877两位坛友!


2 不再强制SUTool窗口出现在固定位置,SUTool每次会出现在上次你关闭它时所在的位置。


3 0.07版内部测试,未公开发布。


4 请大家多反馈使用信息,只有大家多提建议,SUTool才能越来越好~


20080204.2321 发布 v0.06版


1 重新调整文件夹设置;


2 自动添加新的插件到SUT:直接对RB文件进行分析,并将其中的命令自动添加到用户指定的ini文件中,只需Reload SUT一下,即可使用新的插件。 注意,被分析的RB文件不要放在含有中文字符的路径下,比如桌面。


3 RO文件夹放置程序运行所需要的支持文件。
4 其中 convert.rb文件中定义了编码转换函数,默认是将UTF8转换为GB2312,港澳台地区可能需要改写此函数,我这里没有条件测试,有需要的朋友请自行测试或者和我联系。


20080204 发布 v0.05版


1 按照ruby特点重写了所有结构;


2 增加了RB文件分析功能,可以分析出部分RB文件(包括部分加密的)中的命令,可以比较方便的为SUTool增加新的插件,具体看演示,这个功能有待大家测试。


20080126 发布 v0.04版


1可以为一组工具建立单独的按钮窗口,具体看演示。


20080123 发布 v0.03版
1 支持按钮鼠标掠过时变换样式,可以更加醒目
2 修改了CSS样式


20080122 发布 v0.02版


1 支持图标显示,具体方法看说明文件;


2 支持显示分隔条,方法看ini文件夹中的说明;


3 支持ini注释语句;


4 重名了CSS中的样式名,并为每种样式增加了说明,方便大家修改;


5 修改Rebuild Html为Reload SUT,这个按钮可以直接生成html并自动加载,不必手动按F5更新。


2008 01 20 发布 v0.01版
0
Last edited by bianhai on Sat May 31, 2008 9:20 pm, edited 1 time in total.

bianhai 
Banned
 

Re: SUTool----a new way to manager your RB script

Postby Didier Bur » Fri Feb 08, 2008 3:20 pm

Hem hem, I can't read chinese... :bounce:
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby wikii » Mon Feb 11, 2008 1:09 pm

V0.08 has corrected two bugs that cause SUTool loading error.
Now,SUTool window can remembers it's size and position,Thank to Jim!
0

wikii 
PluginStore Author
PluginStore Author
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby JClements » Mon Feb 11, 2008 5:08 pm

Jim,

Been try to decipher this thread. Looks like a convenient way to organize/reorganize scipts.

Would you mind summarizing "how" this works (in general terms), how to install and modify?

J
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby Jim » Mon Feb 11, 2008 10:58 pm

I'm working on a tutorial now... and here it is. I hope it's good.

SUTool_Tutorial.zip
0
Hi

Jim 
Global Moderator
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby Fletch » Sun Feb 17, 2008 7:05 am

Hi Wikii! This is just what I've been wishing for! Great work! Thank you!


Sorry to write with a problem...

I downloaded this: SUTool_v0.08en.rar

It seems to load just fine, but I get this...
0

Fletch 
Twilight Render
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby wikii » Sun Feb 17, 2008 8:23 am

Fletch wrote:Hi Wikii! This is just what I've been wishing for! Great work! Thank you!


Sorry to write with a problem...

I downloaded this: SUTool_v0.08en.rar

It seems to load just fine, but I get this...


Just try to click "SUTool Rebuild" in plugins menu~
0

wikii 
PluginStore Author
PluginStore Author
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby Fletch » Tue Feb 19, 2008 7:45 am

Hi Wikki, that worked... and I could have SWORN I tried that very thing last night, but it didn't work. :knockout:

Jim, you're tutorial was the perfect thing for a guy like me! Blessings upon you a thousand times!
0

Fletch 
Twilight Render
 

Re: [Updated] SUTool----a new way to manager your RB script

Postby Fletch » Tue Feb 19, 2008 8:18 am

ok... don't hate me!
I started loading my rubies...

1st - Jim, there's an easier way that Wikki provided for us to create new menu items instead of manually creating the ini file, you just add new ruby and give the new menu group item a name. I really like it! Maybe just add that in your tut.?

2nd - Wikki, when a name is very long for the ruby script description, the box cuts off the name of the file... so you almost can't tell what it is in some cases. If possible, do you think in the future you will be able to make it so that when you re-size the window it will also re-size the rectangles to show the whole ruby name?
0

Fletch 
Twilight Render
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Carto, Google Bot and 11 guests

Visit our sponsors: