Recipe Code Generator#
運作原理#
使用Recipe Code Generator 會執行以下操作:
- 此工具會將目前開啟的配方儲存為.precipe檔案,並存放在指定的資料夾中。
- 此工具會產生 C++ 範例程式碼,讓您能夠載入、執行及處理該配方。範例程式碼檔案會儲存於與配方檔案相同的資料夾中。
產生食譜程式碼#
若要為您的應用程式產生食譜程式碼:
-
建立一道食譜,或開啟現有的食譜。
-
點擊「Workbench 」工具列中的「Recipe Code Generator 」圖示,或點擊 Workbench > Recipe Code Generator。

此時 Recipe Code Generator 視窗開啟:

-
調整設定
-
Name: Enter the desired name for the recipe.
The name will be used as the recipe file name (<name>.precipe). Also, the name is used in the generated code. -
目標資料夾:選擇要用來儲存所產生檔案的資料夾。若該資料夾不存在,系統會自動建立。
-
-
按一下 Generate。
產生的檔案將會放置在指定的目標資料夾中。