組合件組態
在 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;可用功能與在已組態組合件中的操作完全相同。
重新命名組態
To rename a configuration input or input parameter (column), hover over the current name to display the I-cursor. Click to select the current text, type the new text, then press Enter.
Configuration input parameters (columns) can be renamed for sketch features only.
也可以藉由環境選單來重新命名組態輸入項。
環境選單
若要調整組態輸入項,請按一下三點按鈕
- 複製表格 - 複製整個組態輸入項,然後您可以將其貼入試算表中來保存記錄或編輯。您也可以從試算表中將其貼回至組態輸入項。請參考複製與貼上輸入項值及參數。
- 複製輸入項 - 複製輸入項和跟值 (列),然後您可以將其貼入至另一 Part Studio 或組合件的「組態」面板中,然後使用「複製表格」的指令來加入參數。請參考複製與貼上輸入項。
- 複製所有輸入項 - 複製在「組態」面板中的所有輸入項與值 (列),然後您可以將其貼入至另一 Part Studio 或組合件的「組態」面板中,然後使用「複製表格」的指令來加入參數。請參考複製與貼上輸入項。
- 上移/下移 - 重新調整「組態」面板中輸入項的順序。您也可以點按並拖曳輸入項來重新調整其順序。
- 重新命名 - 重新命名組態輸入項。您也可以如重新命名組態部分所述的來重新命名輸入項。
- 編輯 FeatureScript IDs - 這個對話方塊會變更組態輸入項的內部 FeatureScript 識別碼。在對話方塊內按一下來變更 ID。完成時請選擇右下角的 [斷開參考並變更 IDs]。
這個對話方塊通常是在需要於自訂 FeatureScript 特徵內部建立 Part Studio 時才有用。
- 從屬性中排除 - 請參考從受影響的屬性中排除組態。
- 摺疊/展開所有輸入項 - 摺疊或展開「組態」面板中的所有組態輸入項。
- 顯示情形條件 - 請參考設定顯示情形條件。
- 刪除 - 選擇這個動作來立即刪除組態輸入項;系統不會發出任何警告。
對於所有表格,請使用環境選單 (按滑鼠右鍵) 進行對列或欄的操作:
Column context menu
Row context menu
- 切換至 - 當在非目前所選輸入項的列上按右鍵時,功能表項目會顯示開端為切換至不同輸入項。
- 設為預設 - 如果一個列目前不是預設的輸入值,將其設定為新個預設。目前的預設會顯示在輸入項的名稱旁。
- 複製列 - 建立重複的列;在準備要將新輸入項貼至這個表格時特別有用。詳細資訊請參考下方的組態輸入項表格中的表格複製與貼上。
- 上移/下移 - 將所選列向上或向下移動一列。您也可以點按並拖曳來重新調整列的順序。
- 重新命名 - 重新命名輸入項。
- Delete column/row - Delete the selected column or row.
您可以按一下並拖曳表格中個別的欄邊線以調整欄的大小;在欄標籤堆疊的情況下,按一下並拖曳底部的標籤 (上方圖例中藍色箭頭所指)。


您可以將組態輸入項複製與貼入 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;可用功能與在已組態組合件中的操作完全相同。
The Configuration visibility conditions dialog enables you to add logic to your configurations, so you can control when certain inputs and options are available.

Consider a part with two inputs: Height and Width.
根據預設,任何高度可以有任何的寬度。但假設「Extra Wide」寬度僅能用於「Tall」的高度中。在這樣的情況下,我們可以設定「Width」輸入項會顯示的條件為何。
- In the Configuration panel, click the input's three-dot button, and select Visibility conditions from the menu.
組態顯示情形條件對話方塊開啟。右側的面板顯示目前所選組態的預覽。您可以直接在這個面板中變更所選的選項來預覽您的設定。 - 按一下加入條件。
- 按一下第一個下拉清單,然後選擇控制這個輸入項顯示情形的輸入項。在這個範例中將選擇「Height」輸入項。
- In the second dropdown, choose either is to select specific options, or is between to select a range of options:
- Is: Click the third dropdown that appears and select the allowed option(s) for the input.
- Is between : Click the third dropdown and select the first allowed option in the range. Click the fourth dropdown and select the final allowed optionin the range.
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 Default height in the image below.
- 按一下儲存。現在僅能在選擇了「Tall」高度時,「Width」輸入項才會顯示,且「Width」輸入項表格會出現顯示情項條件圖示
。

You can use the option rule settings in the Configuration visibility conditions dialog to specify the conditions under which certain options should appear.
Option rule logic can be set for list inputs only.
- In the Configuration visibility conditions dialog, expand an input and click Add option rule. A new section appears in the dialog:
- In the Show line, choose the options that are being controlled.
- Options: Click the dropdown that appears and select the option(s) to set conditions for.
- Range: Click the first dropdown and select the first option in the range. Click the second dropdown and select the final option in the range. Ranges are inclusive of the specific options, and overlapping ranges are allowed.
- In the When line:
- Select the input from the first dropdown.
- Choose either is to select specific options, or is between to select a range of options.
- Is: Click the dropdown that appears and select the allowed value(s) for the option.
- Is between: Click the first dropdown and select the first allowed option in the range. Click the second dropdown and select the final allowed option in the range.
-
Continue to add logic within the configuration by clicking Add condition and repeating this set of steps.
Conditions within an option rule are combined together as AND statements; all conditions must be met for the controlled options to be visible.
- Add conditions for other options by clicking Add option rule again.
- 按一下 儲存。
In the example below, the "Deep" option is only allowed when the Area is Default or larger. The "Standard" option is only allowed when the Area is Large, Default, or Small. The "Shallow" option is only allowed when the area is Small or smaller:
The next example uses overlapping ranges to specify visibility conditions:
The example below uses a combination of option and range controls to set the required logic.

Input 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.
當為「Tall」高度將寬度設定為「預設」時,系統會隱藏「Fillet」組態。
Configuration inputs can only control the visibility of inputs that appear below them in the Configurations panel. In the example, the Width input can be controlled by the Height input, but not by the Fillet input.

Visibility conditions are automatically repaired (removed) if the necessary inputs or options 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. The same applies for individual options that are deleted or moved. In this example, the Height input has also been removed from the Fillet options.
You'll see a warning in your workspace, and the conditions are removed in the dialog:

-
The visibility conditions and option rules you set are available in all Insert dialogs (i.e., when inserting a configured part into an assembly). Changes made to visibility conditions are automatically reflected in all existing documents that reference the configured element.
-
Hidden inputs always have their default value. In the first example on this page, Short and Medium height parts have the Default width, even though no width options are set.
-
If a configuration input has no visible options, it is hidden and assumes its default value.
-
-
A summary of the visibility conditions is shown in the dialog when the input or option is collapsed.
-
(僅適用於零件與 Part Studio):從屬性中被排除的組態輸入項僅能控制其下方也被從屬性中排除其他輸入項的顯示情形。在下方的範例中,如果將「Width」則屬性中排除 (以
圖示表示),則其僅能控制「Fillet」的顯示情形 (如果同時從屬性中排除了「Fillet」)。
- 使用組態顯示情形條件對話方塊中的輸入項下拉清單來檢視其他的輸入項。您也可以選擇所有輸入項來檢視所有可用的輸入項。
- When multiple inputs are displayed in the dialog, click the three-dot button to expand or collapse all inputs.
- 您可以使用組態顯示情形條件對話方塊的預覽部分來做為測試您組態的試用場所。
- Deselect the Show hidden inputs checkbox to remove the grayed-out inputs from the dialog.
- Deselect the Show hidden inputs checkbox to remove the grayed-out inputs from the dialog.
-
When adding configured parts to assemblies, hidden inputs are grayed out in the Configurations panel.
-
在「組態」選擇器中按一下
來為所有的輸入項開啟組態顯示情形條件對話方塊。按一下「組態」面板中的
來開啟該輸入項的對話方塊。

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