組合件組態
In Onshape, you can create your own configurations inside an assembly regardless of whether or not you have Part Studio configurations. They are altogether separate and neither impacts the other.
Assembly configurations work mechanically the same way as Part Studio configurations. The difference is that in an assembly, you can only configure mates (not mate connectors), instances, and patterns.
當有多位使用者在同一文件上操作時,每個人可以看到自己所選的組態 (除了是以跟隨模式操作時,在此種情況下跟隨者會看到領導者選取的組態)。
To learn more about assembly configurations, you can follow the self-paced course here: Assembly configurations (Onshape account required).
Below is an example of an assembly with the Configuration panel icon on the right side of the window, shown below to the right of the red arrow:

在工作區中有零件實例或組合件的情況下,開啟「組態」面板:
- 按一下圖形區域右側的
(如上圖所示)
-
「組態」面板開啟:
- Click
:
- Click in the first row to activate it and enter the names of the input in the Name column. For example, to configure a pattern on a part, you might name the rows 2x2 and 4x4. Use Tab to move from one row to the next.
啟用的列會在列的左側有藍色長條。
- To configure an input value for the indicated row, click
.
- Select the mate, instance or pattern that contains the parameter (click it in the Assembly list) and select the parameter in the dialog that opens (shown below outlined in red). The parameter is then outlined with a broken yellow line and a new column is created for that input in the configuration (shown below, in the Configuration panel, to the left of the red arrow).
預設的欄位名稱會是所選取圖元的名稱 (最上層的標題) 加上欄位名稱 (次級階層標題)。在這個範例中 Box <1> 是選取的圖元,使用者已將欄位名稱變更為 2 x 2 與 Long。
- To edit a configured parameter:
- If the input is an entered value, click on the row in the table and enter a new value.
- If the input is a selection in a dialog, double-click the row in the table to open the feature dialog.
The appropriate field in the feature dialog is highlighted in blue. Make your selection on the model or in the Instances lists for this input .
- When finished defining the configurations, click the Done button in the orange message at the top of the window, or close the dialog box.
- 為每個列重複步驟 6 到步驟 8。
- Repeat steps 5 through 8 to add another feature to the configuration.
- 若要在模型上測試您的輸入,請於「特徵」清單中的組態之下,使用下拉箭頭來從功能表中選擇:
根據預設,「組態」左側的插入符號是展開的 (上圖中紅色箭頭的右邊),當您完成面板該部分的操作時,按一下插入符號來摺疊該部分。
Hover over the fields in the feature dialog to see which features can be configured. Features available for configuration are highlighted in yellow when you hover over them.
模型應會相對應地更新。如果沒有,請檢查模型確定有正確傳達設計意圖,並已為組態定義做出正確的選擇。

Onshape has a mechanism for also configuring assembly properties for each of the configuration inputs you have previously defined, directly from the Configuration panel. The properties available to be configured include: name, description, part number, revision, vendor, project, product line, title 1, title 2, title 3, not revision managed, and exclude from all BOMs.
組態設定組合件屬性:
- 在「組態」面板中有現存的組態輸入項的情況下,按一下面板最上方的
(在下圖中以藍色輪廓線框出):
- 按一下
。
- 選擇您要組態的組合件屬性 (清單中包括屬性) (這個範例使用的是「專案」)。
會建立一個表格,其中第一個欄有之前所選組態的輸入項,屬性則在第二個欄中:
- 在「組態」欄中使用下拉箭頭來從組態選項清單中選擇。
- 在「專案」欄 (專案屬性) 中輸入名稱。
- 若要為另一個組態選項加入更多的零件屬性,按一下
。
- 從第一欄中選擇一個新的組態選項。
- 在「專案」欄 (專案屬性) 中輸入名稱。
- 根據需要為所需的組態選項設定屬性。
在組態設定零件編號屬性時,若自動產生零件編號選項是開啟的,您可以按滑鼠右鍵並選擇 [產生新零件編號] (透過您 Professional Company 設定 > 編號方案 或 Enterprise 設定 > 編號方案):
若要變更組態的名稱,請點按組態名稱並輸入新的名稱。在編輯方塊外按一下來儲存變更。

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


You can copy and paste a configuration input into and out of a Part Studio or Assembly. This makes it quick and easy to share configurations between designs.
-
Open the Configuration panel in the Part Studio or Assembly that contains the input to copy.
-
Click the input's three-dot menu and select Copy input or Copy all inputs.
-
Open the Configuration panel in the Part Studio or Assembly to paste the input.
-
Click the arrow next to Configure Part Studio/Assembly and select Paste inputs.
The inputs are inserted into the Configuration panel. -
Select the parameters to configure from the new Part Studio or Assembly. Continue reading to learn how to now copy input values and parameters into the input tables.
Notes:
- You can copy and paste configuration inputs: between Part Studios and Assemblies, within the same document, and between different documents.
- All names, visibility conditions, FeatureScript IDs, and variable definitions are copied with the input.
- Copied inputs are available until the user logs out.
- References between the copied input and pasted input are NOT maintained; after pasting, changes to the original configuration input are NOT reflected in the pasted inputs.
- Pasted visibility conditions are automatically repaired (removed) if the target configuration does not have all the inputs needed to compute the visibility.
- Configuration inputs with the same internal FeatureScript IDs are not pasted. To fix this, you can delete the configuration input with the same internal FeatureScript ID and paste again.

You can copy and paste into and out of a configuration, to aid in entering or editing values.
To copy values and parameters:
- Open the
menu in the upper right corner, next to +Configure features.
- Select Copy table:
- Once you have copied the table, you can paste it into a spreadsheet:
Note that the column names also come in with the table, as shown above. Now you can edit the table and copy/paste it back into Onshape:
- Select just the rows and columns with data (not the column names or headings), as shown in blue below:
You can also pad your table with extra empty rows, if you wish. Just include the extra rows in the spreadsheet when selecting for the copy command.
- Issue a Copy command.
- In the Onshape Configuration table, click the top, left cell of the table.
- Issue a keyboard Paste command:
Onshape automatically replaces whatever data was in the rows and columns of the configuration input table with the data that was copied. Onshape also includes the default units for each input, automatically.
Note that if there are more rows copied from the spreadsheet than are in the Onshape configuration input table, those rows are included in the paste. Onshape creates the rows on the fly.
However, if there are more columns copied from the spreadsheet than are in the Onshape configuration input table, those columns are not included in the paste. Onshape does not yet create columns on the fly. You can, however, create additional columns (parameters) in the configuration table before pasting.

The examples in this section show a configured Part Studio; functionality is identical when working with configured Assemblies.
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.
提示
-
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.