可用于: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”(钣金厚度)作为配置名称。单击选项卡以创建新行,然后输入 “Alternate 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
默认情况下,“配置”左边的插入符号是展开的,当您完成面板的某个部分后,点击插入符号即可折叠该部分。
- 单击第一行将其激活,然后在第一列中输入输入值名称。按 页签 to move to the next row. The blue bar to the left of the row indicates the currently selected configuration in the Onshape window.
此示例有 3 种可能的配置:“短”、“中”和“高”。
- 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.

列名称默认为特征名称(作为顶级标题)加上参数名称(作为下级标题),在这种情况下,挤出 1 是特征名称,深度 是字段名称。
将光标悬停在特征对话框中的输入框上,查看可以配置的参数。将光标悬停在可供配置的参数上面时,这些参数以黄色亮显。
您可以直接在“配置表”中为许多草图和特征尺寸配置“公差选项”(
)。每个选项值都可以有自己的“公差选项”设置。 - To configure the parameter:
- 要编辑某个值,请双击该值并输入新值。
在此示例中,我们将为 3 个输入值设置深度:
- 要编辑对话框中的选择,请双击表中配置的参数以打开特征对话框。
特征对话框中的参数以蓝色亮显。移除任何不需要的选择,然后在模型或草图上做出新的选择。单击特征对话框中的绿色复选标记将其关闭。

- 要编辑某个值,请双击该值并输入新值。
- 完成配置定义后,请单击黄色横幅中的“完成”按钮
- 要向输入中添加另一个参数(列),请重复步骤 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).
- 在特征列表中,单击以打开包含参数的特征并选择该参数。该参数随后以黄色虚线表示,并为表格中的该参数创建一个新列。(在其他输入中配置的参数用黄色虚线表示,不可用于配置。)
在此示例中,选中“取消抑制”作为配置参数。
- 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”。您也可以直接在任何表达式中键入变量名称(以 # 开头)。

- 关闭特征对话框。变量输入的使用情况在“配置”面板中列出。

- 通过在页面左侧特征列表上方的配置列表中选中该值来测试该值:

您可以使用直接在 Part Studio 或装配体中创建的配置输入来预览其设计。但是,创建配置输入的主要用途是选择特定的配置以插入到其他装配体、工程图、发布版本等之中。
使用屏幕左上角的配置区域选择配置输入,以查看它们如何影响整体设计。设计会更新以匹配所选输入,因此您可以预览最终设计。可能的配置输入的每种排列都是一个配置。
您可以通过“插入 Part Studio 和装配体”对话框将已配置的零件、Part Studio,或装配体插入到装配体、发布版本和工程图中
-
直接在“插入”对话框中选择所需的输入:
-
单击“设为上次查看的配置”图标 (
),选择在“Part Studio”或“装配体”选项卡中预览最后一个处于活动状态的配置,或单击箭头并选择“重置为默认值”以将所有输入设置为其默认值。
-
如您对配置感到满意,单击“生成”。
-
单击要插入的配置。
在装配体中,配置的零件和装配体由实例列表中的
图标指示:
将已配置的零件或装配体插入到装配体中后,您可以更改配置:
- 右键单击实例列表中的零件或装配体,然后选择“更改配置”。

- 选择新的配置值。
- 当您对选择的内容满意时,请单击
。(使用
可取消操作。)
要查看装配体中当前有哪些配置处于活动状态,请将鼠标悬停在实例列表中的某个零件上,出现包含配置信息的工具提示:
iOS 和 Android 对配置的支持仅限于以下内容:
-
查看右侧的“配置”面板 (
)。 -
在左侧面板(功能列表上方)中的“配置”之间进行选择:
在 iOS 上选择“配置”
-
(仅限 iOS)如果配置中存在“可见性条件”,则应用这些条件。
您无法在 iOS 或 Android 平台上创建或编辑配置或可见性条件。这只能在桌面(浏览器)平台上完成。
有关其他学习中心资源,请参阅:自定进度课程 > 配置。您还可以在此处阅读学习路径课程:零件配置简介(需要 Onshape 帐户),以及此处的技术简报文章:参数变量与配置变量(需要 Onshape 帐户)。