組合件組態
在 Onshape 中不論您是否有 Part Studio 組態,您都可以在組合件內建立自己的組態。組態是各自獨立且互不影響的。
組合件組態與 Part Studio 組態運作機制相同,不同之處是在組合件中僅能設定結合 (不是結合連接器)、實例與複製排列。
當有多位使用者在同一文件上操作時,每個人可以看到自己所選的組態 (除了是以跟隨模式操作時,在此種情況下跟隨者會看到領導者選取的組態)。
若要進一步了解組合件組態,您可用自己的步調跟著 Assembly configurations (需要有 Onshape 帳戶) 的課程操作。
下方的範例顯示視窗右側有組合件的組態面板圖示,出現在紅色箭頭的右邊:

在工作區中有零件實例或組合件的情況下,開啟「組態」面板:
- 按一下圖形區域右側的
(如上圖所示)
-
「組態」面板開啟:
- 按一下
:
- 按一下第一個列來啟用,然後在「名稱」欄鍵入輸入項的名稱。例如,若要在一個零件上設定複製排列,您可以將列取名為 2x2 與 4x4。可以使用 Tab 鍵來在列之間移動。
啟用的列會在列的左側有藍色長條。
- 若要為指定的列設定輸入值,按一下
。
- 選擇包含參數的結合、實例或複製排列 (在組合件清單中按一下該項目),然後在開啟的對話方塊中選擇參數 (在下圖中以紅色輪廓線框出)。接下來會以黃色虛線框出參數,並在組態中為該輸入項建立一個新的欄 (如下圖中紅色箭頭左側的「組態」面板所示)。
預設的欄位名稱會是所選取圖元的名稱 (最上層的標題) 加上欄位名稱 (次級階層標題)。在這個範例中 Box <1> 是選取的圖元,使用者已將欄位名稱變更為 2 x 2 與 Long。
- 編輯已組態參數:
- 如果輸入項是一個已經輸入的值,在表格中按一下列來輸入新的值。
- 如果輸入項在對話方塊中是一個選取項目,連按兩下表格中的列來開啟特徵對話方塊。
在特徵對話方塊中適當的欄位會以藍色強調顯示。在模型或實例清單中為這個輸入項做出選擇。
- 在完成組態的定義後,按一下視窗上方橘色訊息中的完成按鈕,或關閉對話方塊。
- 為每個列重複步驟 6 到步驟 8。
- 重複步驟 5 到步驟 8 來將另一個特徵加入到組態中。
- 若要在模型上測試您的輸入,請於「特徵」清單中的組態之下,使用下拉箭頭來從功能表中選擇:
根據預設,「組態」左側的插入符號是展開的 (上圖中紅色箭頭的右邊),當您完成面板該部分的操作時,按一下插入符號來摺疊該部分。
將游標移動到特徵對話方塊中的欄位上暫留,查看可以組態那些特徵。當您移動游標於特徵上暫留時,可供組態使用的特徵會以黃色強調顯示。
模型應會相對應地更新。如果沒有,請檢查模型確定有正確傳達設計意圖,並已為組態定義做出正確的選擇。

Onshape 同時提供可直接在「組態」面板中為您之前已定義的組態輸入項設定組合件屬性的機制。可組態的屬性包括:名稱、說明、零件編號、修訂版、廠商、專案、產品線、標題 1、標題 2、標題 3,非修訂版管理的與從所有 BOM 中排除。
組態設定組合件屬性:
- 在「組態」面板中有現存的組態輸入項的情況下,按一下面板最上方的
(在下圖中以藍色輪廓線框出):
- 按一下
。
- 選擇您要組態的組合件屬性 (清單中包括屬性) (這個範例使用的是「專案」)。
會建立一個表格,其中第一個欄有之前所選組態的輸入項,屬性則在第二個欄中:
- 在「組態」欄中使用下拉箭頭來從組態選項清單中選擇。
- 在「專案」欄 (專案屬性) 中輸入名稱。
- 若要為另一個組態選項加入更多的零件屬性,按一下
。
- 從第一欄中選擇一個新的組態選項。
- 在「專案」欄 (專案屬性) 中輸入名稱。
- 根據需要為所需的組態選項設定屬性。
在組態設定零件編號屬性時,若自動產生零件編號選項是開啟的,您可以按滑鼠右鍵並選擇 [產生新零件編號] (透過您 Professional Company 設定 > 編號方案 或 Enterprise 設定 > 編號方案):
若要變更組態的名稱,請點按組態名稱並輸入新的名稱。在編輯方塊外按一下來儲存變更。

在將有組態的零件插入至組合件後,您可以在任何裝置上變更零件的組態:
- 在零件 (或「實例清單」中的零件名稱) 上按右鍵,然後選擇變更組態。
會開啟一個「變更組態」的對話方塊:
- 選擇一個新的組態選項。
- 當對所做選擇滿意時,按一下
(使用
來取消操作)。
在 iOS 與 Android 裝置上輕觸三點功能表,接著選擇 [變更組態] 來存取組態下拉清單,然後選擇一個不同的組態。輕觸 [產生] 的按鈕來建立零件的新組態。


您可以將組態輸入項複製與貼入 Part Studio 或組合件中,或是反向操作。這樣可快速與輕鬆地在設計間分享組態。
-
在 Part Studio 或組合件中開啟包含了要複製輸入項的「組態」面板。
-
按一下輸入項的三點功能表,然後選擇 [複製輸入項] 或 [複製所有輸入項]。
-
在 Part Studio 或組合件中開啟「組態」面板來貼上輸入項。
-
按一下「組態 Part Studio/組合件」旁的箭頭,然後選擇 [貼上輸入項]。
輸入項即被插入至「組態」面板中。 -
從新的 Part Studio 或組合件中選擇要組態的參數。繼續閱讀以了解如何將輸入項的值與參數複製到輸入項表格中。
注意:
- 您可以複製與貼上組態輸入項:可以在 Part Studios 與組合件之間,相同的文件中,以及不同的文件之間。
- 所有的名稱、顯示情形條件、FeatureScript ID、以及變數定義都會隨輸入項一起複製。
- 經複製的輸入項直到使用者登出之前都可使用。
- 系統不會維持複製輸入項與貼上輸入項之間的參考;一旦貼上之後,對原始組態的變更不會反映在貼上的輸入項中。
- 如果目標組態並沒有計算顯示情形所需要的所有輸入項,系統會自動修復 (移除) 貼上的顯示情形條件。
- 系統不會貼上有相同內部 FeatureScript ID 的組態輸入項。要解決這個問題,您可以刪除有相同內部 FeatureScript ID 的組態然後再次貼上。

您可以複製與貼入組態中或反向操作,以幫助輸入或編輯值。
複製值與參數:
- 開啟右上角的
功能表,就在 [+組態特徵] 功能的旁邊。
- 選擇 [複製表格]:
- 複製表格之後,您可以將其貼入試算表中:
請注意,欄名稱會與表格一起貼入 (如上所示)。您現在可以編輯表格,然後將其複製/貼回 Onshape 中:
- 僅選擇內有資料的列與欄 (不是欄名稱或標題),如下方藍色部分所示:
如果需要,您也可以使用額外的空白列來加長表格。只需要在選取複製指令時,將額外的列包含在試算表中。
- 送出一個「複製」的指令。
- 在 Onshape 組態表格中,按一下表格最左上方的儲存格。
- 送出一個「貼上」的指令:
Onshape 會自動以所複製的資料取代組態輸入項表格列與欄內的任何資料。Onshape 同時會自動包括各個輸入項的預設單位。
注意,如果從試算表中複製的列數多於 Onshape 組態輸入項表格中的列數,則在貼上的操作中會包括多的欄。Onshape 會在操作的過程中建立列。
不過,如果從試算表中複製的欄數多於 Onshape 組態輸入項表格中的欄數,則在貼上的操作中不會包括多的欄。Onshape 不會在操作的過程中建立欄位。不過您可以在貼上之前於組態表格中建立額外的欄 (參數)。

在本節中的範例顯示一個已組態的 Part Studio;可用功能與在已組態組合件中的操作完全相同。
You can adjust the conditions under which a configuration input is visible.
Consider a part with two configuration inputs: Height and Width.
By default, a part of any height can have any width. But let's say the Extra Wide width is only available for the Tall height. In that case, we can set the conditions under which the Width input is visible.
- In the Configuration panel, click the configuration's three-dot button, and select Visibility conditions from the menu.
The Configuration visibility conditions dialog opens. The right panel shows a preview of the currently selected configurations. You can change the selected options directly in this panel to preview your settings. - Click Add condition.
- Click the first dropdown, and select the input that should control the visibility of this input. In this example, we'll select the Height input.
- Click the second dropdown, and select the conditions under which the input is available. In this example, the Width input is only available for the Tall height. The preview on the right updates to reflect your selections. You can see that the Width input is no longer available for the Short height in the image below.
- Click Save. Now, the Width input is only visible when the Tall height is selected, and the Width input table displays the Visibility conditions icon
.
Setting multiple conditions
Configuration conditions are additive; if we add a third configuration to the above example and set the conditions shown in the image below, the Large Fillet option will only be available for parts that have both the Tall height and Extra Wide width inputs.
When the Default width is set for the Tall height, the Fillet configuration is hidden.
Configuration inputs can only control the visibility of inputs that appear below them in the Configurations panel. In our example, the Width input can be controlled by the Height input, but not by the Fillet input.
Repairing visibility conditions
Visibility conditions are automatically repaired (removed) if the necessary inputs cannot be found.
For example, if the visibility of the Width input depends on the Height input, and the Height input is deleted, the visibility conditions for Width are automatically removed.
Visibility conditions for Width are calculated from the Height input.
Height input is deleted.
Visibility conditions are automatically repaired for the Width input.
提示
-
The visibility conditions you set are available in all Insert dialogs (i.e., when inserting a configured part into an assembly).
-
Hidden inputs always have their default value. In the example above, Short and Medium height parts have the Default width, even though no width options are set.
-
(Parts and Part Studios only): Configuration inputs that have been excluded from properties can only control the visibility of other inputs below them that have also been excluded from properties. In the example below, if Width is excluded from properties (indicated by the
icon), it can only control the Fillet visibility if Fillet is also excluded from properties.
- Use the Inputs dropdown in the Configuration visibility conditions dialog to view other inputs. You can select All inputs to view all inputs available.
- You can use the preview section of the Configuration visibility conditions dialog as a playground to test your configurations.
- Select the Show hidden inputs checkbox to show grayed-out inputs in the Configuration visibility conditions dialog.
-
Click
in the Configurations selector to open the Configuration visibility conditions dialog for all inputs. Click
in the Configurations panel to open the dialog for that input.
-
Changes made to visibility conditions are automatically reflected in all existing documents that reference the configured element.

When inserting a part with excluded configurations into an assembly, you'll see the Excluded from properties icon next to the part.