草图几何图元故障排除
The status of constraint is indicated by the color of the sketch entities, and you can use the Profile inspector tool to easily identify issues with your sketch constraints.
本视频将介绍对草图几何图元进行故障排除的方式。Onshape 使用颜色来指示草图是欠约束、过约束还是完全受约束。过约束草图的实体将以红色显示。欠约束草图的实体将以蓝色显示,而完全受约束草图的实体则以黑色显示。在此示例中,我们具有欠约束、过约束和完全受约束的草图。
若要修复欠约束的草图,我们可以继续并添加尺寸,在顶部边上应用水平约束,最后,在每一侧应用固定约束。要修复过约束的草图,我们将删除固定约束,使每一侧的直线竖直,并使顶部和底部的线水平,然后我们可以添加新的固定约束。现在已完全定义矩形。
故障排除非常重要。当您要使用诸如拉伸等特征使草图成为零件时(如示例中所示),则可能会注意到其中一个零件没有正确拉伸。因此,我们可以返回到草图,并使用故障排除发现原因在于草图未完全定义。
草图图元的颜色指示其约束的状态:
- Blue means under-constrained.
- Black means fully constrained.
- Red means a constraint problem (over-constrained).
The color of a constraint icon indicates its constrained status:
- Black on gray means well-defined.
- White on red indicates a problem.
- 选择时,非完全约束的草图点(蓝色和红色)优先于任何重叠的完全约束的草图点(黑色)。
添加更多尺寸或约束将进一步约束草图。拖动图元可帮助您了解可能要添加哪些约束或尺寸。
See also: Constraints.
The sketch Profile inspector can help identify gaps in sketches, enabling you to close loops as needed. To open the Profile inspector:
- In the Sketch dialog, click the Show sketch diagnostic tools icon .
- Select Profile inspector from the menu.
- In the Profile inspector, click each issue to highlight it in the sketch. You can also use the Previous and Next buttons to cycle through issues. The issue will disappear from the Profile inspector dialog once it is resolved.
草图图元的颜色指示其约束的状态:
- Blue means under-constrained.
- Black means fully constrained.
- Red means a constraint problem (over-constrained).
The color of a constraint icon indicates its constrained status:
- Black on gray means well-defined.
- White on red indicates a problem.
- 选择时,非完全约束的草图点(蓝色和红色)优先于任何重叠的完全约束的草图点(黑色)。
添加更多尺寸或约束将进一步约束草图。拖动图元可帮助您了解可能要添加哪些约束或尺寸。
See also: Constraints.