Translations:Workbench creation/3/zh-tw: Difference between revisions

From FreeCAD Documentation
(Created page with "基本上這很簡單:需要再Mod資料夾裏面建立一個新的資料夾,並給資料夾一個任意的名字,")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
基本上這很簡單:需要再Mod資料夾裏面建立一個新的資料夾,並給資料夾一個任意的名字,
基本上這很簡單:需要再Mod資料夾裏面建立一個新的資料夾,並給資料夾一個任意的名字,並在資料夾中放入 '''Init.py''' 檔, 以及, 依照需求選擇放或不放一個 '''InitGui.py''' 檔. Init 會在FreeCAD開始的時候被執行然後通常會緊接著執行InitGui.py 檔,不過InitGui.py 檔只有在FreeCAD是在圖形化介面(GUI)模式下才會被執行 ,在 console 模式下不會被執行. 這些就是讓FreeCAD在啟動時找到你的workbench並且將他加到介面上所需要做的事情。

Latest revision as of 10:03, 6 November 2015

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Workbench creation)
You need a folder, with any name you like, placed in the user Mod directory, with an {{incode|Init.py}} file, and, optionally an {{incode|InitGui.py}} file. The Init file is executed when FreeCAD starts, and the {{incode|InitGui.py}} file is executed immediately after, but only when FreeCAD starts in GUI mode. That's all it needs for FreeCAD to find your workbench at startup and add it to its interface.

基本上這很簡單:需要再Mod資料夾裏面建立一個新的資料夾,並給資料夾一個任意的名字,並在資料夾中放入 Init.py 檔, 以及, 依照需求選擇放或不放一個 InitGui.py 檔. Init 會在FreeCAD開始的時候被執行然後通常會緊接著執行InitGui.py 檔,不過InitGui.py 檔只有在FreeCAD是在圖形化介面(GUI)模式下才會被執行 ,在 console 模式下不會被執行. 這些就是讓FreeCAD在啟動時找到你的workbench並且將他加到介面上所需要做的事情。