可用於:Part Studio、組合件中
Create variations of a part, Part Studio, or assembly. For example, you can configure the depth of an extrude feature, the suppression of a fillet, the FeatureScript of a custom feature, part numbers, colors, materials, and more.
In an assembly, you can only configure mates (not mate connectors), instances, and patterns. You can configure an assembly regardless of any Part Studio configurations.
Configurations are created only on a browser but can be viewed on iOS and Android.
See the following pages for more details on working with configurations:
-
Managing Configurations (including renaming, filtering, copy/pasting, etc.)
-
Visibility Configurations (configuration logic)
僅能在瀏覽器版本中建立組態 (於 Part Studio 或組合件中)。藉由建立整個 Part Studio 或特定零件的變化型態來產生零件家族。您可以組態設定任何特徵或參數值,甚至是零件屬性、自訂零件屬性、面與零件外觀和草圖文字。例如,您可以組態設定擠出特徵的深度、圓角特徵的套用、為圓角選取的面,自訂特徵的 FeatureScript、零件編號、色彩與材料。
您在一個 Part Studio 中設定的所有特徵與參數是一個「組態」。每個 Part Studio 可以有一個組態;不過,您可以在一個組態中建立多個組態輸入項。
當您將零件插入至組合件或工程圖時,您在 Part Studio 中定義的組態輸入項會成為「插入」對話方塊中的選項。
在這個範例中建立了兩個組態:一個是新鈑金厚度組態,與一個替代的凸緣組態。當模型在工作區中時,按一下「組態」圖示來開啟「組態」面板。按一下 [組態 Part Studio] 按鈕。輸入「Sheet thickness」做為組態名稱。按一下 Tab 鍵來建立新的列,然後輸入「Alternate flange」做為第二個組態名稱。 每個列是一個不同的組態。
在選取了「Sheet thickness」列的情況下,按一下 [組態特徵} 按鈕。在「特徵」清單中連按兩下包含該參數的特徵。選擇參數來以黃色虛線框出參數。在這個案例中是「Sheet thickness」參數。系統會在表格中為參數建立一個新的欄。連按兩下表格儲存格,然後提供一個新的值。接下來,選擇「Alternate flange」組態列並執行相同的操作。使用 Flange 特徵,然後為表格中的「距離」與「彎折角度」提供其他值。
若要用模型測試輸入值,按一下「特徵」清單中「組態」區域內的下拉箭頭,然後選擇新的組態來查看結果。系統會使用新的輸入參數更新模型。
- Click the Configuration panel icon (
) on the right side of the screen. -
The Configuration panel opens. Click Configure Part Studio or Configure Assembly to add an input:
Creating a configuration in a Part Studio
Creating a configuration in an assembly
根據預設,「組態」左側的插入符號是展開的,當您完成面板中該部分的操作時,按一下插入符號來摺疊該部分。
- 在第一列上按一下來將其啟用,然後在第一欄中鍵入輸入項名稱。按下 Tab to move to the next row. The blue bar to the left of the row indicates the currently selected configuration in the Onshape window.
這個範例有三種可能的組態:Short、 Medium、與 Tall。
- To configure a feature for the selected input value, click + Configure features (or + Configure assembly features).
- Click the feature or instance to configure and select the parameter. The parameter is outlined with a broken yellow line and a new column is created for that parameter.
For example, click an Extrude feature in the Features list, and select the Depth parameter in the Extrude dialog. The parameter is highlighted in yellow in the dialog, and a new column appears in the table.

欄的預設名稱是特徵名稱 (最上層的標題) 加上參數名稱 (次級階層標題),在這個範例中 Extrude 1 是特徵名稱,Depth 則是欄位名稱。
將游標移動到特徵對話方塊中的欄位上暫留,查看可以組態設定那些參數。當您移動暫留游標時,可供組態使用的參數會以黃色強調顯示。
You can configure Tolerance options (
) for many sketch and feature dimensions directly in the Configurations table. Each option value can have their own Tolerance options settings. - To configure the parameter:
- 若要編輯值,請在值上連按兩下,然後輸入新的值。
為這個範例設定三個輸入項值的深度:
- 若要在對話方塊中編輯一個選取項目,請在表格中連按兩下經組態的參數以開啟特徵對話方塊。
在特徵對話方塊中的參數會以藍色強調顯示。移除任何不想要的選取項目,然後在模型或草圖上做出新的選擇。按一下特徵對話方塊中的綠色核取記號來關閉對話方塊。

- 若要編輯值,請在值上連按兩下,然後輸入新的值。
- 在完成定義組態時,按一下黃色橫幅中的完成按鈕。
- 若要將另一個參數 (攔) 加入到輸入項中,請重複步驟 4-7。
- To add additional list inputs, click the Add configuration input button at the bottom of the Configuration panel, then select List.
- 若要在模型上測試您的輸入項,請在左側面板的組態之下,使用下拉箭頭來從功能表中選擇:

模型應會相對應地更新。如果沒有,請檢查模型確定有正確傳達設計意圖,並已為組態定義做出正確的選擇。
Create a checkbox to turn options on or off (such as fillets or chamfers), and suppress or unsuppress features. This presents a checkbox in the Insert dialog during insertion time.
-
Click the Add configuration input button at the bottom of the Configuration panel, then select Checkbox:
- The Checkbox input dialog opens. Enter a name for the input.

-
The configuration input has one column with an empty checkbox row and a checked checkbox row. Click + Configure features (or + Configure assembly features).
- 在「特徵」清單中按一下包含參數的特徵,然後選擇參數。此時參數會出現在黃色虛線邊框中,同時會在表格中為該參數建立新的欄位 (在另一個輸入項中設定的參數會出現在黃色虛線邊框中,無法用於組態之中)。
在這個範例中,選擇了 Unsuppressed 做為組態輸入項的參數。
- Click X to close the feature dialog.
- Uncheck the box in the first column to indicate that a checked box should insert an unsuppressed feature:

-
Click the Add configuration input button at the bottom of the Configuration panel, then select Configuration variable:
- 在變數輸入項對話方塊中輸入變數的名稱。這會變為系統中的實際變數,被稱作 #variableName。

- 選擇變數的類型:長度、角度、 整數、實數與文字。文字可以是任何可用於 FeatureScript 中的文字類型。
- 為您選取的變數類型輸入值。
- 按一下核取記號來儲存您的定義。
- 將變數套用至特徵上:
- 在「特徵」清單中連按兩下特徵來開啟它。
- 在輸入項上按右鍵,然後按一下設定為 #variableName。您也可以直接在任何表達式中輸入變數名稱 (前面加上 #)。
![在尺寸上按右鍵,選擇 [組態尺寸] 的範例](../Resources/Images/feature-tools/config-set-variable-01.png)
- 關閉特徵對話方塊。變數輸入項的使用情形會列在「組態」面板中。

- 在頁面左側「特徵」清單上方的「組態」清單中選取值來加以測試:

您可以使用在 Part Studio 或組合件中直接建立的組態輸入項來預覽設計。不過,建立組態輸入項的主要用途是要選擇要插入至其他組合件、工程圖、發行等的特定組態。
使用螢幕左上角的組態區域來選擇組態輸入項,以查看其如何影響整體的設計。設計會配合所選的輸入項更新以讓您檢視最終的設計。每種可能組態輸入項的排列是一個組態。
您可以將組態的零件、Part Studio、或組合件透過插入 Part Studios 與組合件對話方塊插入到組合件、發行、與工程圖中。
-
直接在插入對話方塊中選擇所需的輸入項:
-
按一下設定為最後檢視的組態 圖示 (
) 來選擇在 Part Studio 或組合件分頁中預覽的最後使用組態,或按一下箭頭並選擇重設為預設來將所有的輸入項重設回其預設值。
-
當您對組態感到滿意時,按一下產生。
-
按一下要插入的組態。
在組合件中,經組態的零件與組合件在實例清單中會以
圖示表示:
在將已組態零件或組合件插入至組合件之後,您可以變更組態:
- 在「實例」清單中的零件或組合件上按右鍵,然後選擇變更組態。

- 選擇新的組態值。
- 當對所做選擇滿意時,按一下
(使用
來取消操作)。
若要查看組合件中的啟用組態為何,將游標移動到「實例」清單中的零件上暫留,會出現帶有組態資訊的工具提示:
iOS 與 Android 對組態的支援僅限於下方的功能:
-
檢視在右側的「組態」面板 (
)。 -
在左側面板中的組態之間選擇 (位在「特徵」清單上方):
在 iOS 上選擇組態
-
(僅限於 iOS 中) 如果在組態中有顯示情形條件,則會套用顯示情形條件。
您無法在 iOS 或 Android 平台中建立或編輯組態或是顯示情形條件。這些僅能在桌機 (瀏覽器) 平台上操作。
關於在「學習中心」的其他資源,請參考:Self-Paced Courses > Configurations。您也可以參照此處的學習途徑課程:Introduction to Part Configurations (需要有 Onshape 帳戶),與此處的技術簡報文章:Parametric Variables vs Configuration Variables (需要有 Onshape 帳戶)。