> For the complete documentation index, see [llms.txt](https://primer2.dynamobim.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://primer2.dynamobim.org/zh-tw/6_custom_nodes_and_packages/6-1_custom-nodes/3-library.md).

# 發佈至資源庫

我們剛剛建立了自訂節點並將其套用至 Dynamo 圖形中的特定程序。我們非常喜歡此節點，因此，我們要將其保留在我們的 Dynamo 資源庫以在其他圖形中進行參考。若要執行此作業，我們將在本端發佈此節點。此程序與發佈套件的程序類似，我們將在下一個章節中進行詳細討論。

透過在本端發佈節點，當您開啟一個新的階段作業時該節點將可在 Dynamo 資源庫中存取。如果不發佈節點，參照自訂節點的 Dynamo 圖表也必須在其資料夾中具有該自訂節點 (或必須使用 *「檔案」>「匯入資源庫」* 將自訂節點匯入 Dynamo 中)。

{% hint style="warning" %}
在 Dynamo Sandbox 2.17 版及更新版本中，只要自訂節點和套件沒有主 API 相依性，即可加以發佈。在較舊版中，只有 Dynamo for Revit 和 Dynamo for Civil 3D 中可發佈自訂節點和套件。
{% endhint %}

## 練習：在本端發佈自訂節點

> 按一下下方的連結下載範例檔案。
>
> 附錄中提供完整的範例檔案清單。

讓我們繼續瞭解在前一個部份中建立的自訂節點。開啟 PointsToSurface 自訂節點後，我們會在 Dynamo 自訂節點編輯器中看到圖表。您也可以在「Dynamo 圖表編輯器」中按兩下自訂節點來開啟。

!

若要在本端發佈自訂節點，只需在圖元區上按一下右鍵，然後選取 *「發佈此自訂節點...」*

!

參照上圖填寫相關資訊，並選取 *「本端發佈」*。請注意，「群組」欄位定義可從 Dynamo 功能表存取的主要元素。

<figure><img src="/files/eVrFFz9tvg3sA1b7cBi0" alt=""><figcaption></figcaption></figure>

選擇資料夾，以容納所有您打算在本端發佈的自訂節點。Dynamo 每次載入時都會檢查此資料夾，因此請確認該資料夾位於固定位置。導覽至此資料夾，然後選擇 *「選擇資料夾」*。Dynamo 節點現已在本端發佈，每次您載入程式時，該節點都會在您的 Dynamo 資源庫中！

!

若要查看自訂節點的資料夾位置，請前往 *「Dynamo」>「偏好」>「套件設定」>「節點和套件路徑」。*

<figure><img src="/files/03MWIogqFSY8UlncsJSH" alt="" width="520"><figcaption></figcaption></figure>

在此視窗中，我們看到路徑清單。

<figure><img src="/files/JolXKkqe81HznnqvHNcP" alt=""><figcaption></figcaption></figure>

> 1. *Documents\DynamoCustomNodes...* 是本端發佈之自訂節點的位置。
> 2. *AppData\Roaming\Dynamo...* 是線上安裝的 Dynamo 套件的預設位置。
> 3. 您可能想要在清單中將本端資料夾路徑的順序下移，只要按一下路徑名稱左側的向下箭頭即可。頂層資料夾是套件安裝的預設路徑。因此，透過將預設 Dynamo 套件安裝路徑保留為預設資料夾，線上套件將與本端發佈的節點分離。

我們已切換路徑名稱的順序，以將 Dynamo 的預設路徑作為套件的安裝位置。

<figure><img src="/files/hLE5TXFRpCgDt7F3LfSp" alt=""><figcaption></figcaption></figure>

導覽至此本端資料夾，我們可以在 *「.dyf」* 資料夾中找到原始自訂節點，.dyf 是 Dynamo 自訂節點檔案的副檔名。我們可以編輯此資料夾中的檔案，節點將在使用者介面中更新。我們還可以新增更多節點至主要的 *DynamoCustomNode* 資料夾，Dynamo 會在重新啟動時將其新增到您的資源庫！

!

Dynamo 現在每次都會將「PointsToSurface」載入到 Dynamo 資源庫的「DynamoPrimer」群組中。

!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://primer2.dynamobim.org/zh-tw/6_custom_nodes_and_packages/6-1_custom-nodes/3-library.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
