国产freexxxx性播放,囯产精品久久久久久久久久妞妞,а√最新版在线天堂鲁大师,丰满少妇被粗大猛烈进人高清 ,аⅴ资源天堂资源库在线

×
熱門分類
微信掃碼登陸

QQ登錄

只需一步,快速開始

馬上注冊(cè),結(jié)交更多好友,享用更多功能,讓你輕松玩轉(zhuǎn)社區(qū)。

您需要 登錄 才可以下載或查看,沒有帳號(hào)?立即加入SketchUp吧! 微信掃碼登陸

x
SU在超BIM方向前進(jìn)的道路上困難重重:首先是出的報(bào)告到EXCEL里中文亂碼;跟著是在DC里設(shè)置的各類信息全都導(dǎo)出到EXCEL里了,有時(shí)直接導(dǎo)致列內(nèi)數(shù)據(jù)錯(cuò)位,DC里面附加信息有選擇的導(dǎo)出到EXCEL是比較理想的狀況,可惜估計(jì)同中文亂碼一樣,一時(shí)得不到根本性的解決;現(xiàn)在只能退而求其次:DC里面只含需要計(jì)算數(shù)量的數(shù)據(jù),能把需要的統(tǒng)計(jì)數(shù)據(jù)導(dǎo)出到EXCEL就OK,其它的屬性添加全在另一個(gè)插件里完成:
ATTRIBUTE  MANAGER,這個(gè)插件也是比較好的,現(xiàn)在需要漢化及對(duì)插件瘦身,希望能得到壇子里的高人協(xié)助

精彩評(píng)論

文明上網(wǎng)理性發(fā)言、請(qǐng)文明用語(yǔ)

171

主題

2318

帖子

2957

紅寶石

網(wǎng)站創(chuàng)始人

Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29

紅寶石
2957

SuBAR聚會(huì)紀(jì)念郵 成都站SuBAR_CLT漢化團(tuán)隊(duì)寶石收藏家核心會(huì)員共享精神獎(jiǎng)財(cái)富大亨忠實(shí)粉絲熱心助人獎(jiǎng)社區(qū)微博達(dá)人

QQ
2#
雙魚 2009-4-9 22:28:00
ATTRIBUTE  MANAGER這個(gè)插件本身不是很大:53.1KB。
周末如果有精力就把它漢化一下吧。
其實(shí)這類未加密rb文件漢化沒有難度,打開后修改相關(guān)字串就行;要的只是耐心,測(cè)試雙字節(jié)的偏移。大家可以自己試著來(lái)漢化的。

這個(gè)插件不知有沒有出新版本。

36

主題

289

帖子

250

紅寶石

SU有道(等級(jí)7)

Rank: 7Rank: 7Rank: 7

紅寶石
250

優(yōu)秀創(chuàng)意獎(jiǎng)優(yōu)秀技術(shù)獎(jiǎng)榮譽(yù)會(huì)員社區(qū)微博達(dá)人

3#
zfBIM 2009-4-9 22:41:00
感謝雙魚大大的鼎力相助,從SCF上看這個(gè)插件沒有更新的版本,如圖是這插件的幾個(gè)界面:
001是第一界面,有兩個(gè)出口002和004,003是002的次級(jí)界面,現(xiàn)在希望去掉001及004,直接進(jìn)入002及其次級(jí)界面,需要保障輸入的漢字能保持,不亂碼。
再次感謝雙魚及熱心的朋友!

421

主題

4465

帖子

1658

紅寶石

論壇元老

企鵝組長(zhǎng)

Rank: 16Rank: 16Rank: 16Rank: 16

紅寶石
1658

核心會(huì)員寶石收藏家熱心助人獎(jiǎng)忠實(shí)粉絲優(yōu)秀創(chuàng)意獎(jiǎng)榮譽(yù)會(huì)員Sketchup建模大賽 第五期 TOP5

QQ
4#
劉企 2009-4-10 12:31:00
這是個(gè)什么插件???

36

主題

289

帖子

250

紅寶石

SU有道(等級(jí)7)

Rank: 7Rank: 7Rank: 7

紅寶石
250

優(yōu)秀創(chuàng)意獎(jiǎng)優(yōu)秀技術(shù)獎(jiǎng)榮譽(yù)會(huì)員社區(qū)微博達(dá)人

5#
zfBIM 2009-4-10 18:25:00

貼上源代碼,請(qǐng)雙魚,ODM,麥兜和富農(nóng)這些RB高手幫我們講解一下插件的漢化方法!也算授人以漁吧!

:Z # Copyright (c) 2007 Google Inc.
require 'sketchup.rb'
class DataInitializer
    def initialize(use_def_if_available)
        #Sketchup.active_model.start_operation("Attribute Edits");
        ss = Sketchup.active_model.selection
        if(ss.empty? || ss.count != 1)
            $entity = Sketchup.active_model;
        else
            $entity = ss[0];
            if($entity.class == Sketchup::ComponentInstance)
                if(use_def_if_available)
                    $entity = $entity.definition
                elsif(IDYES == UI::messagebox("Use Definition?", MB_YESNO))
                    $entity = $entity.definition
                end
            end
        end
        initStandardTabs();
    end
def initTextAttrib(dict,name)
  $entity.set_attribute(dict,name,dict+":"+name) if(nil == $entity.get_attribute(dict,name))
end
   
    def initLinkAttrib(dict,name,url)
  $entity.set_attribute(dict,name,url) if(nil == $entity.get_attribute(dict,name))
end
   
def initAuthorTab()
  initTextAttrib("AuthorInfo","name");
  initLinkAttrib("AuthorInfo","email", "[email=//[email protected]]mailto://[email protected][/email]");
        initLinkAttrib("AuthorInfo","link", "http://sketchup.google.com");
end
   
def initProductTab()
  initTextAttrib("ProductInfo","brand");
  initTextAttrib("ProductInfo","brand_link");
  initTextAttrib("ProductInfo","link");
  initTextAttrib("ProductInfo","image_link");
  initTextAttrib("ProductInfo","id");
  initTextAttrib("ProductInfo","product_type");
  initTextAttrib("ProductInfo","specification_code");
  initTextAttrib("ProductInfo","specification_standard");
    end
def initModelTab()
  initTextAttrib("ModelInfo","title");
  initTextAttrib("ModelInfo","description");
  initTextAttrib("ModelInfo","tags");
  initLinkAttrib("ModelInfo","link","http://sketchup.google.com/3dwarehouse");
  initTextAttrib("ModelInfo","warehouse_id");
  initTextAttrib("ModelInfo","last_modified");
end

   
def initStandardTabs()
  initAuthorTab();
        initModelTab();
        initProductTab();
end
end
class AttribManagerBase
def initialize(use_def_if_available)
        @modified = false;
        Sketchup.active_model.start_operation("Attribute Edits");
        ss = Sketchup.active_model.selection
        if(ss.empty? || ss.count != 1)
            $entity = Sketchup.active_model;
        else
            $entity = ss[0];
            if($entity.class == Sketchup::ComponentInstance)
                if(use_def_if_available)
                    $entity = $entity.definition
                elsif(IDYES == UI::messagebox("Use Definition?", MB_YESNO))
                    $entity = $entity.definition
                end
            end
        end
        cleanser = AttributeCleanser.new($entity);
        cleanser.clean();
        
        closed = false;
  $dlg = UI::WebDialog.new("Attribute Manager", true, "AM");
  $dlg.set_file(File.dirname(__FILE__) + "/AttribEditor.html");
  $dlg.add_action_callback("on_cancel") {|d,p| closed=true;Sketchup.active_model.abort_operation(); $dlg.close() }
  $dlg.add_action_callback("on_accept") {|d,p| closed=true;Sketchup.active_model.commit_operation(); $dlg.close() }
  $dlg.add_action_callback("on_close") {|d,p| $dlg.close() }
  $dlg.add_action_callback("on_delete_attribute") {|d,p| deleteAttribute(d, p); }
  $dlg.add_action_callback("on_edit_attribute") {|d,p| editAttribute(d, p); }
  $dlg.add_action_callback("on_add_attribute") {|d,p| addAttribute(d, p); }
  $dlg.add_action_callback("on_delete_dictionary") {|d,p| deleteDictionary(d, p); }
  $dlg.add_action_callback("on_add_dictionary") {|d,p| addDictionary(d, p); }
  $dlg.add_action_callback("create_standard_categories") {|d,p| createStandardCategories(d, p); }
        
        $dlg.set_size 600, 400;
        $dlg.set_on_close {
            check_save() if(!closed)   
        }
        
        showDialog();
    end
    def check_save()
        if(@modified)
            save = UI::messagebox("Save changes?", MB_YESNO);
            if(save==IDNO)
                Sketchup.active_model.abort_operation();
            else
                Sketchup.active_model.commit_operation();
            end
        else
            Sketchup.active_model.abort_operation();
        end
    end
   
    def createStandardCategories(d,p)
        @modified = true;
        DataInitializer.new($entity);
        json = getJSONDictionaries();
        $dlg.execute_script("initJson('" + json + "', true)");
    end
   
    def fromJSON(str)
        null=nil;
        eval(str.gsub(/(["'])\s*:\s*(['"0-9tfn\[{])/){"#{$1}=>#{$2}"})
    end
   

    def deleteAttribute(d, p)
        @modified = true;
        # extract the dict and name from the parameters
        dict_and_name = fromJSON(p);
        dict = $entity.attribute_dictionaries[dict_and_name["dict_name"]];
        if(dict != nil)
            dict.delete_key dict_and_name["attrib_name"];
        end
    end
   
    def editAttribute(d, p)
        @modified = true;
        params = fromJSON(p);
        dict = $entity.attribute_dictionaries[params["dict_name"]];
        if(dict != nil)
            # delete the existing attribute
            dict.delete_key params["attrib_name"];
            # add it with the new name/value
            dict[ params["attrib_name"] ] = params["attrib_value"];
        end
    end
   
    def addAttribute(d, p)
        @modified = true;
        params = fromJSON(p);
        dict = $entity.attribute_dictionaries[params["dict_name"]];
        if(dict != nil)
            # add it with the new name/value
            dict[ params["attrib_name"] ] = params["attrib_value"];
        end   
    end
   
    def deleteDictionary(d, p)
        @modified = true;
        $entity.attribute_dictionaries.delete p;
    end
    def addDictionary(d, p)
        @modified = true;
        $entity.attribute_dictionary p, true;
    end
    # escapges the characters in the given string so that the
    # resulting string can be used as an argument to a javascript
    # function.
    def escapeChars(s)
        s.gsub('"','\\\\\\"').gsub("'","[url=]\\\\'[/url]");
    end
   
    def getJSONDictionaries()
        json = '{"dictionaries":[';
        dicts = $entity.attribute_dictionaries
        if(dicts != nil)
            dicts.each do |dict|
                json += '{"name":"' + dict.name + '","attributes":[';
               
                dict.each_key do |attribName|
                    json += '{';
                    json += '"name":"' + attribName + '",';
                    if(dict[attribName].class != Geom::Transformation)
                        json += '"value":"' + escapeChars(dict[attribName].to_s) + '"},';
                    else
                        json += '"value":"' + escapeChars(dict[attribName].to_a.to_s) + '"},';
                    end
                end
                json += ']},'
            end
        end
        json += "]}";
        json.gsub!(/,/,"#COMMA#");
        return json;
    end
   
    def showDialog()
  $dlg.show_modal() {
            json = getJSONDictionaries();
            $dlg.execute_script("initJson('" + json + "')");
  }
    end
   
end
class AttribManagerAll < AttribManagerBase
   def initialize()
        super(false)
    end
    end
class AttribManagerProduct < AttribManagerBase
   def initialize()
        super(true)
    end
end
class AttributeCleanser
    def initialize(ent)
        $ent = ent
    end
   
    def clean()
        dicts = []
        toDelete = []
        dictNames = []
        ads = $ent.attribute_dictionaries;
        return if ads == nil;
        i = 0
        ads.each do |d|
            if(dictNames.index(d.name) == nil)
                dicts.push(d)
                dictNames.push(d.name)
            else
                toDelete.push(d)
            end
            i = i + 1
        end
        
        toDelete.each do |d|
            ads.delete d
        end
    end
end
$helpHTML=<<EOHELP   
    <html>
    <body>
    <b>Help for Attribute Manager functions.</b>
    <p>
    This plugin helps you manage the attributes found on the model and
    entities contained within the model.  
    <p>
    It is accessed in two ways:
    <ol>
      <li>Via the main menus: <span style="font-family:courier">Tools > Attributes</span>
      The options here apply to the entire model.
      <li>Via context (right click) menus: <span style="font-family:courier">Attributes</span>
      The options here apply to the <em>single</em> selected item.
    </ol>
    <p>
    There are 3 operations possible from the menus -
    show the attributes, cleanse the attributes of duplicate categories, and
    make the standard categories.
    <p>
    The <b>Show</b> option will launch a modal dialog that allows you to create and delete
    attribute categories and add/edit/delete individual attributes.
    <p>
    If an attribute value starts with "http://" or "[email=//]mailto://[/email]" then the value will be displayed
    without the prefix, but with the link automatically created.
    </body>
    </html>
EOHELP
subMenu = UI::menu("Tools").add_submenu("Attributes");
subMenu.add_item("Show") {
AttribManagerAll.new
}
subMenu.add_item("Make standard categories") {
DataInitializer.new(true)
}
subMenu.add_item("Remove duplicates") {
    # make sure there is only one of each dictionary of a given name
    ac = AttributeCleanser.new(Sketchup.active_model);
    ac.clean();
}
   
subMenu.add_separator
subMenu.add_item("Help") {
dlg = UI::WebDialog.new("Attribute Manager Help", true, "AMHelp")
    dlg.set_html($helpHTML)
    dlg.show
}
   
   
UI::add_context_menu_handler do |menu|
    if(Sketchup.active_model.selection.count == 1)
        menu.add_separator
        subMenu = menu.add_submenu("Attributes");
        
  subMenu.add_item("Show") {
            AttribManagerProduct.new;
        }
        
        subMenu.add_item("Make standard categories") {
            DataInitializer.new(true)
        }
        subMenu.add_item("Remove duplicates") {
            AttributeCleanser.new(Sketchup.active_model.selection.first);
        }        
    end
end

2

主題

98

帖子

0

紅寶石

SU入學(xué)(等級(jí)1)

Rank: 1

紅寶石
0
6#
xuyago 2009-4-10 18:33:00

回復(fù) 2# 雙魚 的帖子

請(qǐng)問rb都是java編寫的嗎?rb差價(jià)的語(yǔ)言包是在哪個(gè)文件里的?謝謝。

2

主題

98

帖子

0

紅寶石

SU入學(xué)(等級(jí)1)

Rank: 1

紅寶石
0
7#
xuyago 2009-4-10 18:37:00
我覺得源代碼中都是要執(zhí)行的語(yǔ)句,不能漢化,漢化的話需要外掛的語(yǔ)言包。我的觀點(diǎn),我不懂ruby,不動(dòng)java

36

主題

289

帖子

250

紅寶石

SU有道(等級(jí)7)

Rank: 7Rank: 7Rank: 7

紅寶石
250

優(yōu)秀創(chuàng)意獎(jiǎng)優(yōu)秀技術(shù)獎(jiǎng)榮譽(yù)會(huì)員社區(qū)微博達(dá)人

8#
zfBIM 2009-4-10 18:39:00
如果這個(gè)插件能得到合理的瘦身及漢化,期望它就是未來(lái)信息模型的信息母體,也是SU實(shí)現(xiàn)BIM的基本信息庫(kù)文件基礎(chǔ)。

315

主題

1881

帖子

2867

紅寶石

網(wǎng)站創(chuàng)始人

老到陳腐

Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29

紅寶石
2867

2012龍年春節(jié)團(tuán)拜紀(jì)念郵SuBAR_CLT漢化團(tuán)隊(duì)寶石收藏家核心會(huì)員財(cái)富大亨熱心助人獎(jiǎng)

9#
diweiman 2009-4-11 03:29:00
我在su7中生成報(bào)表,html格式?jīng)]有亂碼,csv格式會(huì)亂碼,不過可以先導(dǎo)出html格式然后用excel直接打開html文件就可以解決亂碼的問題吧
表格錯(cuò)位沒有見到
沒有選擇性導(dǎo)出
su7組件屬性的屬性名不能是字母和數(shù)字外的其他字符也是個(gè)缺陷,不過可以忍受
一個(gè)板凳的試驗(yàn):su7版本
板凳.rar (7.89 KB, 下載次數(shù): 13)

生成的報(bào)表,長(zhǎng)寬高不知道以什么為單位的,反正不是公制,在組件屬性里添加lenX,Y,Z這幾個(gè)屬性并定義單位也沒用,暈菜.....




另:插件漢化的時(shí)候,不必勞神去調(diào)整雙字節(jié)單字節(jié)的,只要把rb文件打開,先轉(zhuǎn)成UTF-8編碼,然后編輯漢化,保存就可以了。找一個(gè)能夠方便轉(zhuǎn)換文本編碼的文本編輯器就可以了,我用Emeditor。我漢化插件都用這個(gè)方法,沒出現(xiàn)過亂碼情況,請(qǐng)各位參考。
至于漢化方法,其實(shí)我是一點(diǎn)都不懂Ruby的,我漢化rb文件都是認(rèn)真看看,憑自己對(duì)其他語(yǔ)言語(yǔ)法的一些了解,判斷哪些地方是純粹的顯示文本,一般就是雙引號(hào)里的文字,但雙引號(hào)里的不一定都是能修改的地方,有些是屬性名或函數(shù)方法名,改了就運(yùn)行不了了,一般如messagebox后面的就是能改的,是彈出對(duì)話框的顯示文本,還有類似add_menu字樣后的相關(guān)文本是增加菜單項(xiàng)的,可以漢化。。。。。多少還是需要一些時(shí)間,去熟悉ruby的基本語(yǔ)法規(guī)則。

贊賞

1

查看全部評(píng)分

315

主題

1881

帖子

2867

紅寶石

網(wǎng)站創(chuàng)始人

老到陳腐

Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29

紅寶石
2867

2012龍年春節(jié)團(tuán)拜紀(jì)念郵SuBAR_CLT漢化團(tuán)隊(duì)寶石收藏家核心會(huì)員財(cái)富大亨熱心助人獎(jiǎng)

10#
diweiman 2009-4-11 03:54:00
zfBIM說的那個(gè)插件不只這一個(gè)文件吧,主要內(nèi)容是一些html和js文件,漢化工作主要在那些文件上面。

36

主題

289

帖子

250

紅寶石

SU有道(等級(jí)7)

Rank: 7Rank: 7Rank: 7

紅寶石
250

優(yōu)秀創(chuàng)意獎(jiǎng)優(yōu)秀技術(shù)獎(jiǎng)榮譽(yù)會(huì)員社區(qū)微博達(dá)人

11#
zfBIM 2009-4-11 10:32:00
是,這里面共有11個(gè)文件;


并附上此插件:

Attribs.rar

21.25 KB, 下載次數(shù): 43, 下載積分: 吧幣 -200 個(gè)

rar

36

主題

289

帖子

250

紅寶石

SU有道(等級(jí)7)

Rank: 7Rank: 7Rank: 7

紅寶石
250

優(yōu)秀創(chuàng)意獎(jiǎng)優(yōu)秀技術(shù)獎(jiǎng)榮譽(yù)會(huì)員社區(qū)微博達(dá)人

12#
zfBIM 2009-4-11 11:16:00
無(wú)私的富農(nóng),請(qǐng)接受我誠(chéng)摯的敬意與感謝!
HTML格式完美解決了漢字亂碼的問題,你的這一發(fā)現(xiàn)為SU朝BIM邁進(jìn)鏟除了一顆巨大的頑石,相對(duì)而言其它的一些問題已顯得微乎其微了。

感謝富農(nóng)!再次感謝!

315

主題

1881

帖子

2867

紅寶石

網(wǎng)站創(chuàng)始人

老到陳腐

Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29Rank: 29

紅寶石
2867

2012龍年春節(jié)團(tuán)拜紀(jì)念郵SuBAR_CLT漢化團(tuán)隊(duì)寶石收藏家核心會(huì)員財(cái)富大亨熱心助人獎(jiǎng)

13#
diweiman 2009-4-11 13:26:00
原帖由 zfBIM 于 2009-4-11 11:16:00 發(fā)表
無(wú)私的富農(nóng),請(qǐng)接受我誠(chéng)摯的敬意與感謝!
HTML格式完美解決了漢字亂碼的問題,你的這一發(fā)現(xiàn)為SU朝BIM邁進(jìn)鏟除了一顆巨大的頑石,相對(duì)而言其它的一些問題已顯得微乎其微了。

感謝富農(nóng)!再次感謝!

嘿嘿,不要搞個(gè)人崇拜哦~

0

主題

2

帖子

0

紅寶石

SU入學(xué)(等級(jí)1)

Rank: 1

紅寶石
0
14#
lx_o 2009-10-5 13:56:37
非常不錯(cuò)

0

主題

50

帖子

1

紅寶石

SU入學(xué)(等級(jí)1)

Rank: 1

紅寶石
1
15#
bcbman 2010-1-31 15:52:36
verycd上有關(guān)于ruby的資料,有需要的話,可以搜一搜

5

主題

19

帖子

11

紅寶石

SU游學(xué)(等級(jí)2)

Rank: 2

紅寶石
11
16#
leimikk 2013-5-25 21:22:16
感謝zfBIM 的分享,非常有幫助,這個(gè)插件的值得好好學(xué)習(xí)?。?!

4

主題

2468

帖子

15

紅寶石

SU游學(xué)(等級(jí)2)

Rank: 2

紅寶石
15

忠實(shí)粉絲社區(qū)微博達(dá)人積極討論獎(jiǎng)

17#
dai025dai 2014-7-12 02:29:05
在翻DBO資料看到ATTRIBUTE  MANAGER的漢化信息  竟然是2009年的事情了  時(shí)隔5年   不知道這個(gè)插件有沒有蛻變~   單貌似SU本身已經(jīng)成為了一個(gè)正真的“草圖大師” 在諸多的設(shè)計(jì)工作中扮演著出創(chuàng)意和草稿的工作。

13

主題

278

帖子

97

紅寶石

SU學(xué)師(等級(jí)6)

Rank: 6Rank: 6

紅寶石
97
18#
╄→紫色望海℡ 2015-6-16 17:19:21
學(xué)習(xí)和了解一下

0

主題

5

帖子

0

紅寶石

紅寶石用戶A

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

紅寶石
0
19#
18766174181 2015-8-20 13:59:55
裝一個(gè)試試

0

主題

2

帖子

0

紅寶石

SU入學(xué)(等級(jí)1)

Rank: 1

紅寶石
0
20#
huoyue0094 2018-3-27 15:32:15
不是太好用,有些屬性顯示不了
高級(jí)模式
您需要登錄后才可以回帖 登錄 | 立即加入SketchUp吧! 微信掃碼登陸

本版積分規(guī)則

zfBIM

SU有道(等級(jí)7)

  • 主題

    36

  • 吧幣

    0

  • 紅寶石

    250

關(guān)閉

站長(zhǎng)推薦上一條 /1 下一條

發(fā)布主題 快速回復(fù) 返回列表 客服中心 搜索 官方QQ群