Sketcher Workbench/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(109 intermediate revisions by 5 users not shown)
Line 2: Line 2:


{{Docnav
{{Docnav
|[[Robot Workbench|Robot Workbench]]
|[[Robot_Workbench|Robot Workbench]]
|[[Spreadsheet Workbench|Spreadsheet Workbench]]
|[[Spreadsheet_Workbench|Spreadsheet Workbench]]
|IconL=Workbench_Robot.svg
|IconL=Workbench_Robot.svg
|IconR=Workbench_Spreadsheet.svg
|IconR=Workbench_Spreadsheet.svg
Line 10: Line 10:
[[Image:Workbench_Sketcher.svg|thumb|128px|Sketcher workbench icon]]
[[Image:Workbench_Sketcher.svg|thumb|128px|Sketcher workbench icon]]


{{TOCright}}

<span id="Introduction"></span>
== 简介 ==
== 简介 ==


<div class="mw-translate-fuzzy">
[[Sketcher Workbench | 草图工作台]]用于创建用于[[PartDesign Workbench/zh-cn | 零件工作台]]、[[Arch Workbench/zh-cn | 建筑工作台]]和其他工作台的二维几何图形。
[[Sketcher Workbench | 草图工作台]]用于创建用于[[PartDesign Workbench/zh-cn | 零件工作台]]、[[Arch Workbench/zh-cn | 建筑工作台]]和其他工作台的二维几何图形。
通常,二维绘图被视为大多数CAD模型的起点,因为二维草图可以“拉伸”以创建三维形状;进一步的二维草图可以用于在先前构建的三维形状的基础上创建其他特征,如开槽“Pocket”、隆起“ridges”或拉伸。
通常,二维绘图被视为大多数CAD模型的起点,因为二维草图可以“拉伸”以创建三维形状;进一步的二维草图可以用于在先前构建的三维形状的基础上创建其他特征,如开槽“Pocket”、隆起“ridges”或拉伸。
草图绘制器与在[[PartDesign Workbench/zh-cn|零件设计工作台]]中定义的布尔操作一起构成了构建实体的[[constructive solid geometry/zh-cn|构造实体几何]]方法的基础。此外,草图绘制器还与[[PartDesign Workbench/zh-cn|零件设计工作台]]操作一起构成了创建实体的[[feature editing/zh-cn |特征编辑]]方法的基础。
草图绘制器与在[[PartDesign Workbench/zh-cn|零件设计工作台]]中定义的布尔操作一起构成了构建实体的[[constructive solid geometry/zh-cn|构造实体几何]]方法的基础。此外,草图绘制器还与[[PartDesign Workbench/zh-cn|零件设计工作台]]操作一起构成了创建实体的[[feature editing/zh-cn |特征编辑]]方法的基础。
</div>


<div class="mw-translate-fuzzy">
草图工作台本身具有约束条件 - 允许将2D形状约束到精确的几何定义。以及一个约束求解器,它计算二维几何约束范围,并允许对草图自由度的交互式探索。
草图工作台本身具有约束条件 - 允许将2D形状约束到精确的几何定义。以及一个约束求解器,它计算二维几何约束范围,并允许对草图自由度的交互式探索。
</div>


{{TOCright}}
[[File:FC_ConstrainedSketch.png|450px]]
[[File:FC_ConstrainedSketch.png|450px]]

{{Caption|一个全约束草图}}
{{Caption|一个全约束草图}}


== Basics of constraint sketching ==

<div class="mw-translate-fuzzy">
==约束草图的基础==
==约束草图的基础==
为了解释草图编辑器的工作原理,将其与“传统的”起草方式进行比较可能是有用的。
为了解释草图编辑器的工作原理,将其与“传统的”起草方式进行比较可能是有用的。
</div>


==== Traditional Drafting ====

<div class="mw-translate-fuzzy">
====传统起草====
====传统起草====
CAD绘图的传统方式继承于旧的[http://en.wikipedia.org/wiki/Drawing_board 绘图板]. [http://en.wikipedia.org/wiki/Multiview_orthographic_projection 正交(2D)视图] 手动绘制,用于生产技术图纸(也称为蓝图)。对象被精确地绘制到预期的尺寸或尺寸上。如果要从(0,0)开始绘制长度为100mm的水平线,您可以激活线条工具,点击屏幕或输入第一个点的(0,0)坐标,然后再次点击或在(100,0)处输入第二点坐标。或者你会画你的线,而不考虑它的位置,然后移动它。绘制几何图形后,可以向其添加尺寸。
CAD绘图的传统方式继承于旧的[http://en.wikipedia.org/wiki/Drawing_board 绘图板]. [http://en.wikipedia.org/wiki/Multiview_orthographic_projection 正交(2D)视图] 手动绘制,用于生产技术图纸(也称为蓝图)。对象被精确地绘制到预期的尺寸或尺寸上。如果要从(0,0)开始绘制长度为100mm的水平线,您可以激活线条工具,点击屏幕或输入第一个点的(0,0)坐标,然后再次点击或在(100,0)处输入第二点坐标。或者你会画你的线,而不考虑它的位置,然后移动它。绘制几何图形后,可以向其添加尺寸。
</div>


==== Constraint Sketching ====

<div class="mw-translate-fuzzy">
====约束草图====
====约束草图====
'''草图'''远离这个逻辑。对象不需要完全按照您的意图进行绘制,因为它们将在稍后被约束定义。对象可以松散绘制,只要不受约束,就可以进行修改。它们实际上是“浮动”,可以移动,拉伸,旋转,缩放等等。这在设计过程中给予了很大的灵活性。
'''草图'''远离这个逻辑。对象不需要完全按照您的意图进行绘制,因为它们将在稍后被约束定义。对象可以松散绘制,只要不受约束,就可以进行修改。它们实际上是“浮动”,可以移动,拉伸,旋转,缩放等等。这在设计过程中给予了很大的灵活性。
</div>


==== What are constraints? ====

<div class="mw-translate-fuzzy">
====什么是约束? ====
====什么是约束? ====
使用约束来限制对象的自由度。例如,没有约束的线条具有4 [[#Degrees Of Freedom|自由度]](简写为“DOF”):可以水平或垂直移动,可以被拉伸,并且可以旋转。
使用约束来限制对象的自由度。例如,没有约束的线条具有4 [[#Degrees Of Freedom|自由度]](简写为“DOF”):可以水平或垂直移动,可以被拉伸,并且可以旋转。
</div>


应用水平或垂直约束或角度约束(相对于另一条线或与其中一条轴)将限制其旋转能力,从而使其具有3个自由度。锁定其原点之一的点将消除另外2个自由度。并且应用维度约束将消除最后的自由度。然后,该行被认为是“完全受限制的”。
应用水平或垂直约束或角度约束(相对于另一条线或与其中一条轴)将限制其旋转能力,从而使其具有3个自由度。锁定其原点之一的点将消除另外2个自由度。并且应用维度约束将消除最后的自由度。然后,该行被认为是“完全受限制的”。


<div class="mw-translate-fuzzy">
多个对象可以彼此约束。可以通过其中一个点与重合点约束连接两条线。可以在它们之间设置一个角度,或者它们可以垂直设置。一条线可以与弧或圆相切,依此类推。具有多个对象的复杂草图将具有多种不同的解决方案,并使其“完全受约束”,这意味着基于所应用的约束只能达到其中一种可能的解决方案。
多个对象可以彼此约束。可以通过其中一个点与重合点约束连接两条线。可以在它们之间设置一个角度,或者它们可以垂直设置。一条线可以与弧或圆相切,依此类推。具有多个对象的复杂草图将具有多种不同的解决方案,并使其“完全受约束”,这意味着基于所应用的约束只能达到其中一种可能的解决方案。
</div>


<div class="mw-translate-fuzzy">
有两种约束:几何和尺寸。它们在下面的[[#The tools|'工具']]部分中详细介绍。
有两种约束:几何和尺寸。它们在下面的[[#The tools|'工具']]部分中详细介绍。
</div>


==== What the Sketcher is not good for ====

<div class="mw-translate-fuzzy">
== 草图编辑器不擅长于 ==
== 草图编辑器不擅长于 ==
草图编辑器不打算制作2D蓝图。草图一旦用于生成实体特征后,会自动隐藏。约束仅在草图编辑模式下可见。
草图编辑器不打算制作2D蓝图。草图一旦用于生成实体特征后,会自动隐藏。约束仅在草图编辑模式下可见。
</div>


<div class="mw-translate-fuzzy">
如果您仅需要生成2D视图进行打印,并不想创建3D模型,请查看[[Draft Module/zh-cn|底图工作台]](请注意,底图工作台也可用于创建此时草图编辑器中不可用的2D几何,如B-Splines。)
如果您仅需要生成2D视图进行打印,并不想创建3D模型,请查看[[Draft_Workbench/zh-cn|底图工作台]](请注意,底图工作台也可用于创建此时草图编辑器中不可用的2D几何,如B-Splines。)
</div>

The tool [[Draft_Draft2Sketch|Draft2Sketch]] converts a Draft object to a Sketch object, and vice versa. Many tools that require a 2D element as input work with either type of object as an internal conversion is done automatically.


== Sketching Workflow ==
== Sketching Workflow ==


<div class="mw-translate-fuzzy">
==草图工作流程==
==草图工作流程==
草图总是二维(2D)。要创建一个实体,创建单个封闭区域的2D草图,然后垫高或旋转以添加第三维,从2D草图创建3D实体。
草图总是二维(2D)。要创建一个实体,创建单个封闭区域的2D草图,然后垫高或旋转以添加第三维,从2D草图创建3D实体。
</div>


<div class="mw-translate-fuzzy">
如果草图具有彼此交叉的段,其中一个点不直接位于段上的位置,或相邻段的端点之间存在间隙的位置,垫高或旋转将不会创建一个实体。这个规则的例外是它不适用于构造(蓝色)几何对象。
如果草图具有彼此交叉的段,其中一个点不直接位于段上的位置,或相邻段的端点之间存在间隙的位置,垫高或旋转将不会创建一个实体。这个规则的例外是它不适用于构造(蓝色)几何对象。
</div>


<div class="mw-translate-fuzzy">
在封闭区域内,我们可以有较小的非重叠区域。当创建3D实体时,这些将变为空白。
在封闭区域内,我们可以有较小的非重叠区域。当创建3D实体时,这些将变为空白。
</div>


Once a Sketch is fully constrained, the Sketch features will turn green; Construction Geometry will remain blue. It is usually "finished" at this point and suitable for use in creating a 3D solid. However, once the Sketch dialog is closed it may be worthwhile going to [[Image:Workbench_Part.svg|24px]] [[Part_Module|Part Workbench]] and running {{Button|[[File:Part_CheckGeometry.svg|16px]] [[Part_CheckGeometry|Check geometry]]}} to ensure there are no features in the Sketch which may cause later problems.
Once a Sketch is fully constrained, the Sketch features will turn green; Construction Geometry will remain blue. It is usually "finished" at this point and suitable for use in creating a 3D solid. However, once the Sketch dialog is closed it may be worthwhile going to [[Image:Workbench_Part.svg|24px]] [[Part_Workbench|Part Workbench]] and running {{Button|[[File:Part_CheckGeometry.svg|16px]] [[Part_CheckGeometry|Check geometry]]}} to ensure there are no features in the Sketch which may cause later problems.


== Tools ==

<div class="mw-translate-fuzzy">
==工具==
==工具==
草图工作台工具都位于加载草图工作台时出现的草图菜单中。
草图工作台工具都位于加载草图工作台时出现的草图菜单中。
</div>

{{Version|0.21}}: If a sketch is in edit mode the Structure toolbar is hidden as none of its tools can then be used.


=== General ===
=== General ===


==== Sketcher toolbar ====
* [[Image:Sketcher_NewSketch.png‎‎|32px]] [[Sketcher_NewSketch|New sketch]]: 在所选的面或平面上创建新的草图。如果在执行此工具时未选择任何面, 则系统将提示用户从弹出窗口中选择一个平面。

* [[Image:Sketcher_EditSketch.png|32px]] [[Sketcher_EditSketch|Edit sketch]]: 编辑已选择的构图。这会开启[[Sketcher Dialog|构图对话框]]。

* [[Image:Sketcher_LeaveSketch.png|32px]] [[Sketcher_LeaveSketch|Leave sketch]]: 离开构图编辑模式。

* [[Image:Sketcher_ViewSketch.png‎|32px]] [[Sketcher_ViewSketch|View sketch]]: 设置垂直于构图平面的模型视图。


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_NewSketch.svg‎‎|32px]] [[Sketcher_NewSketch/zh-cn|创建草图]]: 在所选的面或平面上创建新的草图。如果在执行此工具时未选择任何面, 则系统将提示用户从弹出窗口中选择一个平面。
* [[Image:Sketcher ViewSection.png|32px]] [[Sketcher_ViewSection|View section]]: 创建一个截面,并暂时隐藏此构图平面前侧的所有内容。{{Version|0.18}}
</div>
</div>

* [[Image:Sketcher_MapSketch.png‎|32px]] [[Sketcher_MapSketch|Map sketch to face]]: 将构图映射到以前选定的实心面。


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_EditSketch.svg|32px]] [[Sketcher_EditSketch/zh-cn|编辑草绘]]: 编辑已选择的草图。这会开启[[Sketcher Dialog|草图对话框]]。
* [[Sketcher_Reorient|Reorient sketch ]]: 允许您更改构图的位置
</div>
</div>


* [[Image:Sketcher_MapSketch.svg|32px]] [[Sketcher_MapSketch/zh-cn|映射草图至面]]: 将草图映射到以前选定的实心面。
<div class="mw-translate-fuzzy">
* [[Sketcher_ValidateSketch|Validate sketch]]: 它允许你检查是否有不同点的公差和匹配。
</div>


* [[File:Sketcher_ReorientSketch.svg|32px]] [[Sketcher_ReorientSketch/zh-cn|调整草图方向]]: 允许您更改草图的位置
<div class="mw-translate-fuzzy">
* [[Image:Sketcher MergeSketch.png‎|32px]] [[Sketcher MergeSketches|Merge sketches]]: 合并两个或多个构图。{{Version|0.15}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[File:Sketcher_ValidateSketch.svg|32px]] [[Sketcher_ValidateSketch/zh-cn|校验草图…]]: 它允许你检查是否有不同点的公差和匹配。
* [[Image:Sketcher MirrorSketch.png‎|32px]] [[Sketcher MirrorSketch|Mirror sketch]]: 沿 x 轴、y轴或原点镜像构图。{{Version|0.16}}
</div>
</div>


* [[Image:Sketcher_MergeSketches.svg|32px]] [[Sketcher_MergeSketches/zh-cn|合并草图]]: 合并两个或多个草图。
* [[File:Sketcher_StopOperation.svg|32px]] [[Sketcher_StopOperation|Stop operation]]: when in edit mode, stop the current operation, whether that is drawing, setting constraints, etc.


* [[Image:Sketcher_MirrorSketch.svg|32px]] [[Sketcher_MirrorSketch/zh-cn|镜像草图]]: 沿 x 轴、y轴或原点镜像草图。
====构图编辑器几何工具====

==== Sketcher Edit Mode toolbar ====

* [[Image:Sketcher_LeaveSketch.svg|32px]] [[Sketcher_LeaveSketch/zh-cn|离开草图]]: 离开草图编辑模式。

* [[Image:Sketcher_ViewSketch.svg|32px]] [[Sketcher_ViewSketch/zh-cn|查看草图]]: 设置垂直于草图平面的模型视图。

* [[Image:Sketcher_ViewSection.svg|32px]] [[Sketcher_ViewSection/zh-cn|查看截面]]: 创建一个截面,并暂时隐藏此草图平面前侧的所有内容。

==== Sketcher edit tools toolbar ====

* [[Image:Sketcher_Grid.svg|32px]] [[Sketcher_Grid|Toggle grid]]: Toggles the grid in the sketch currently being edited. Settings can be changed in the related menu. {{Version|0.21}}

* [[Image:Sketcher_Snap.svg|32px]] [[Sketcher_Snap|Toggle snap]]: Toggles snapping in all sketches. Settings can be changed in the related menu. {{Version|0.21}}

* [[Image:Sketcher_RenderingOrder.svg|32px]] [[Sketcher_RenderingOrder|Configure rendering order]]: The rendering order of all sketches can be changed in the related menu. {{Version|0.21}}

==== Other ====

* [[File:Sketcher_StopOperation.svg|32px]] [[Sketcher_StopOperation|Stop operation]]: When in edit mode, stop the current operation, whether that is drawing, setting constraints, etc.

<span id="Sketcher_geometries"></span>
====草图编辑器几何工具====


这是创建对象的工具。
这是创建对象的工具。


* [[Image:Sketcher_CreatePoint.svg|32px]] [[Sketcher_CreatePoint|Point]]: 绘制一个点.
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePoint.png|32px]] [[Sketcher_CreatePoint|Point]]: 绘制一个点.
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 106: Line 160:
</div>
</div>


* <span id="Sketcher_CompCreateArc">[[Image:Sketcher_CreateArc.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create arc:</span><!--Do not edit span id: the Sketcher_CompCreateArc pages redirect here-->
* [[Image:Sketcher_CompCreateArc.png|48px]] [[Sketcher_CompCreateArc|Create an arc]]: 这是一个位于构图工作台中的图标菜单,其中列有下列命令:


:* [[Image:Sketcher_CreateArc.svg|32px]] [[Sketcher_CreateArc|Arc]]: 从中心,半径,起始角度和最终角度绘制弧段。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Arc.png|32px]] [[Sketcher_CreateArc|Arc]]: 从中心,半径,起始角度和最终角度绘制弧段。
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 116: Line 168:
</div>
</div>


* <span id="Sketcher_CompCreateCircle">[[Image:Sketcher_CreateCircle.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create circle:</span><!--Do not edit span id: the Sketcher_CompCreateCircle pages redirect here-->
* [[Image:Sketcher_CompCreateCircle.png|48px]] [[Sketcher_CompCreateCircle|Create a circle]]: 这是一个位于构图工具栏中的图标菜单,其中列有下列命令:


:* [[Image:Sketcher_CreateCircle.svg|32px]] [[Sketcher_CreateCircle|Circle]]: 从中心和半径画一个圆。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Circle.png|32px]] [[Sketcher_CreateCircle|Circle]]: 从中心和半径画一个圆。
</div>


:* [[Image:Sketcher_Create3PointCircle.svg|32px]] [[Sketcher_Create3PointCircle|Circle by 3 point]] : 从圆周上的三个点画一个圆。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher CreateCircle3Point.png|32px]] [[Sketcher_Create3PointCircle|Circle by 3 Point]] : 从圆周上的三个点画一个圆。
</div>


* <span id="Sketcher_CompCreateConic">[[Image:Sketcher_Conics.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create conic:</span><!--Do not edit span id: the Sketcher_CompCreateConic pages redirect here-->
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Conics.png|32px]] [[Sketcher_CompCreateConic|Conic sections]]: 构图工作台提供了以下圆锥曲线工具。与B样条不同的是,可对这些圆锥曲线使用各种约束,如切线、对象上的点或正交。
** [[Image:Sketcher_CreateEllipse.png|32px]] [[Sketcher CreateEllipseByCenter|Ellipse by center]] : 通过中心点,大半径点和小半径点绘制椭圆。 {{Version|0.15}}
** [[Image:Sketcher_CreateEllipse_3points.png|32px]] [[Sketcher CreateEllipseBy3Points|Ellipse by 3 points]] : 用大直径(2点)和小半径点绘制椭圆。 {{Version|0.15}}
** [[Image:Sketcher_Elliptical_Arc.png|32px]] [[Sketcher_CreateArcOfEllipse|Arc of ellipse]] : 通过中心点,主要半径点,起点和终点绘制椭圆弧。 {{Version|0.15}}
**[[Image:Sketcher_Hyperbolic_Arc.png|32px]] [[Sketcher_CreateArcOfHyperbola|Arc of hyperbola]]: 绘制双曲线弧。 {{Version|0.17}}
**[[Image:Sketcher_Parabolic_Arc.png|32px]] [[Sketcher_CreateArcOfParabola|Arc of parabola]]: 画出抛物线弧。 {{Version|0.17}}
</div>


:* [[Image:Sketcher_CreateEllipseByCenter.svg|32px]] [[Sketcher_CreateEllipseByCenter|Ellipse by center]]: Draws an ellipse by center point, major radius point and minor radius point.
<div class="mw-translate-fuzzy">

* [[Image:Sketcher_CompCreateBSpline.png|48px]] [[Sketcher_CompCreateBSpline|Create a B-spline]]: 这是一个位于构图工作台中的图标菜单,其中列有下列命令:
:* [[Image:Sketcher_CreateEllipseBy3Points.svg|32px]] [[Sketcher_CreateEllipseBy3Points|Ellipse by 3 points]]: Draws an ellipse by major diameter (2 points) and minor radius point.
** [[File:Sketcher_CreateBSpline.svg|32px]] [[Sketcher_CreateBSpline|Create B-spline]]: 利用控制点来绘制一条B样条曲线。{{Version|0.17}}

** [[File:Sketcher_Create_Periodic_BSpline.svg|32px]] [[Sketcher_CreatePeriodicBSpline|Create periodic B-spline]]: 利用控制点来绘制一条周期性(periodic,此处为闭合closed之意)的B样条曲线。{{Version|0.17}}
:* [[Image:Sketcher_CreateArcOfEllipse.svg|32px]] [[Sketcher_CreateArcOfEllipse|Arc of ellipse]]: Draws an arc of ellipse by center point, major radius point, starting point and ending point.
</div>

:* [[Image:Sketcher_CreateArcOfHyperbola.svg|32px]] [[Sketcher_CreateArcOfHyperbola|Arc of hyperbola]]: Draws an arc of hyperbola.

:* [[Image:Sketcher_CreateArcOfParabola.svg|32px]] [[Sketcher_CreateArcOfParabola|Arc of parabola]]: Draws an arc of parabola.

* <span id="Sketcher_CompCreateBSpline">[[Image:Sketcher_CreateBSpline.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] B-spline:</span><!--Do not edit span id: the Sketcher_CompCreateBSpline pages redirect here-->

:* [[File:Sketcher_CreateBSpline.svg|32px]] [[Sketcher_CreateBSpline|B-spline by control points]]: Draws a B-spline curve by its control points.

:* [[File:Sketcher_CreatePeriodicBSpline.svg|32px]] [[Sketcher_CreatePeriodicBSpline|Periodic B-spline by control points]]: Draws a periodic (closed) B-spline curve by its control points.

:* [[File:Sketcher_CreateBSplineByInterpolation.svg|32px]] [[Sketcher_CreateBSplineByInterpolation|B-spline by knots]]: Draws a B-spline curve by its knots. {{Version|0.21}}

:* [[File:Sketcher_CreatePeriodicBSplineByInterpolation.svg|32px]] [[Sketcher_CreatePeriodicBSplineByInterpolation|Periodic B-spline by knots]]: Draws a periodic (closed) B-spline curve by its knots. {{Version|0.21}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePolyline.png|32px]] [[Sketcher_CreatePolyline|Polyline (multiple-point line)]]: 绘制由多个线段组成的线。绘制折线时,按M键可在不同的折线模式之间切换。
* [[Image:Sketcher_CreatePolyline.png|32px]] [[Sketcher_CreatePolyline|Polyline (multiple-point line)]]: 绘制由多个线段组成的线。绘制折线时,按M键可在不同的折线模式之间切换。
</div>
</div>

* <span id="Sketcher_CompCreateRectangles">[[Image:Sketcher_CreateRectangle.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create rectangle:</span><!--Do not edit span id: the Sketcher_CompCreateRectangles pages redirect here-->


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 149: Line 206:
</div>
</div>


:* [[Image:Sketcher_CreateRectangle_Center.svg|32px]] [[Sketcher_CreateRectangle_Center|Centered rectangle]]: Draws a rectangle from a central point and an edge point. {{Version|0.20}}
* [[Image:Sketcher_CompCreateRegularPolygon.png|48px]] [[Sketcher_CompCreateRegularPolygon|Create regular polygon]]: 这是一个位于构图工具栏中的图标菜单,其中列有下列命令:


:* [[Image:Sketcher_CreateOblong.svg|32px]] [[Sketcher_CreateOblong|Rounded rectangle]]: Draws a rounded rectangle from 2 opposite points. {{Version|0.20}}
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateTriangle.png|32px]] [[Sketcher_CreateTriangle|Triangle]]: 在几何圆构图中绘制一个正三角形。 {{Version|0.15}}
</div>


* <span id="Sketcher_CompCreateRegularPolygon">[[Image:Sketcher_CreateHexagon.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create regular polygon:</span><!--Do not edit span id: the Sketcher_CompCreateRegularPolygon pages redirect here-->
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateSquare.png|32px]] [[Sketcher_CreateSquare|Square]]: 在几何圆构图中绘制一个正方形。 {{Version|0.15}}
</div>


* [[Image:Sketcher_CreateTriangle.png|32px]] [[Sketcher_CreateTriangle|Triangle]]: 在几何圆草图中绘制一个正三角形。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePentagon.png|32px]] [[Sketcher_CreatePentagon|Pentagon]]: 在几何圆构图中绘制一个正五面。 {{Version|0.15}}
</div>


* [[Image:Sketcher_CreateSquare.png|32px]] [[Sketcher_CreateSquare|Square]]: 在几何圆草图中绘制一个正方形。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateHexagon.png|32px]] [[Sketcher_CreateHexagon|Hexagon]]: 在几何圆构图中绘制一个正六边形。 {{Version|0.15}}
</div>


* [[Image:Sketcher_CreatePentagon.png|32px]] [[Sketcher_CreatePentagon|Pentagon]]: 在几何圆草图中绘制一个正五面。
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateHeptagon.png|32px]] [[Sketcher_CreateHeptagon|Heptagon]]: 在几何圆构图中绘制一个正七边形。 {{Version|0.15}}
</div>


* [[Image:Sketcher_CreateHexagon.png|32px]] [[Sketcher_CreateHexagon|Hexagon]]: 在几何圆草图中绘制一个正六边形。
<div class="mw-translate-fuzzy">

* [[Image:Sketcher_CreateOctagon.png|32px]] [[Sketcher_CreateOctagon|Octagon]]: 在几何圆构图中绘制一个正八边形。 {{Version|0.15}}
* [[Image:Sketcher_CreateHeptagon.png|32px]] [[Sketcher_CreateHeptagon|Heptagon]]: 在几何圆草图中绘制一个正七边形。
</div>

* [[Image:Sketcher_CreateOctagon.png|32px]] [[Sketcher_CreateOctagon|Octagon]]: 在几何圆草图中绘制一个正八边形。


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateRegularPolygon.png|32px]] [[Sketcher_CreateRegularPolygon|Create Regular Polygon]] : 根据指定的边数与拾取的两个点:中点与一个角点来绘制一个正多边形。
:* [[Image:Sketcher_CreateRegularPolygon.svg|32px]] [[Sketcher_CreateRegularPolygon|Create Regular Polygon]] : 根据指定的边数与拾取的两个点:中点与一个角点来绘制一个正多边形。
</div>
</div>

* <span id="Sketcher_CompSlot">[[Image:Sketcher_CreateSlot.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create slot:</span><!--Do not edit span id: the Sketcher_CompSlot pages redirect here-->


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateSlot.png|32px]] [[Sketcher_CreateSlot|Slot]]: 通过选择一个半圆的中心和另一个半圆的终点绘制椭圆。
* [[Image:Sketcher_CreateSlot.svg|32px]] [[Sketcher_CreateSlot|Slot]]: 通过选择一个半圆的中心和另一个半圆的终点绘制椭圆。
</div>
</div>

:* [[Image:Sketcher_CreateArcSlot.svg|32px]] [[Sketcher_CreateArcSlot|Arc slot]]: TBD. {{Version|0.22}}

* <span id="Sketcher_CompCreateFillets">[[Image:Sketcher_CreateFillet.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create fillet:</span><!--Do not edit span id: the Sketcher_CompCreateFillets pages redirect here-->


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateFillet.png|32px]] [[Sketcher_CreateFillet|Fillet]]: 在一条线之间加入两条线之间的圆角。选择两行或单击角点,然后激活该工具。
* [[Image:Sketcher_CreateFillet.svg|32px]] [[Sketcher_CreateFillet|Fillet]]: 在一条线之间加入两条线之间的圆角。选择两行或单击角点,然后激活该工具。
</div>
</div>

:* [[Image:Sketcher_CreatePointFillet.svg|32px]] [[Sketcher_CreatePointFillet|Corner-preserving fillet]]: Creates a fillet between two non-parallel lines while preserving their (virtual) intersection.

* <span id="Sketcher_CompCurveEdition">[[Image:Sketcher_Trimming.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Edit edge:</span><!--Do not edit span id: the Sketcher_CompCurveEdition pages redirect here-->


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 191: Line 250:
</div>
</div>


:* [[Image:Sketcher_Split.svg|32px]] [[Sketcher_Split|Split]]: Splits an edge into two while keeping most of the constraints. {{Version|0.20}}

<div class="mw-translate-fuzzy">
* [[File:Sketcher_Extend.svg|32px]] [[Sketcher_Extend|Extend]]: 将一条线或一条弧延长至一条边界线、弧、椭圆形、椭圆形上的弧或空间中的一个点处。 {{Version|0.17}}
* [[File:Sketcher_Extend.svg|32px]] [[Sketcher_Extend|Extend]]: 将一条线或一条弧延长至一条边界线、弧、椭圆形、椭圆形上的弧或空间中的一个点处。 {{Version|0.17}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 197: Line 260:
</div>
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_CarbonCopy.svg|32px]] [[Sketcher_CarbonCopy|CarbonCopy]]: 复制另一张构图中的几何体图形。 {{Version|0.17}}
* [[File:Sketcher_CarbonCopy.svg|32px]] [[Sketcher_CarbonCopy|CarbonCopy]]: 复制另一张草图中的几何体图形。 {{Version|0.17}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]: 将元素切换 到/从 图模式。对象图不会在3D几何操作中使用,并且仅在编辑包含它的图时可见。这是 v0.15 中使用的图标。直到FreeCAD v0.16,用户必须先在图编辑器中创建常规(白色)几何对象,然后使用此工具将其更改为“几何图”(蓝色)。
* [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]: 将元素切换 到/从 图模式。对象图不会在3D几何操作中使用,并且仅在编辑包含它的图时可见。这是 v0.15 中使用的图标。直到FreeCAD v0.16,用户必须先在图编辑器中创建常规(白色)几何对象,然后使用此工具将其更改为“几何图”(蓝色)。
* [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]: 在FreeCAD v0.16中,添加了在构造模式下直接创建几何的能力,因此图标已更改为该图形。选择现有的图编辑器几何图形,然后单击此工具可以在常规和构造模式之间切换几何图形,就像以前的FreeCAD版本一样。从FreeCAD v0.16开始,当没有选择图编辑器几何图形时,选择此工具会更改将要创建将来的对象的模式(常规与构造)。
* [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]: 在FreeCAD v0.16中,添加了在构造模式下直接创建几何的能力,因此图标已更改为该图形。选择现有的图编辑器几何图形,然后单击此工具可以在常规和构造模式之间切换几何图形,就像以前的FreeCAD版本一样。从FreeCAD v0.16开始,当没有选择图编辑器几何图形时,选择此工具会更改将要创建将来的对象的模式(常规与构造)。
</div>
</div>


<span id="Sketcher_constraints"></span>
===构图编辑器约束===
===草图编辑器约束===


约束用于定义长度、在图元素之间设置规则以及沿垂直和水平轴锁定图。某些约束要求 [[Sketcher_helper_constraint|辅助约束]]
约束用于定义长度、在图元素之间设置规则以及沿垂直和水平轴锁定图。某些约束要求 [[Sketcher_helper_constraint|辅助约束]]


* [[File:Sketcher_ConstrainCoincidentUnified.svg|32px]] [[Sketcher_ConstrainCoincidentUnified|Coincident (unified)]]: TBD. {{Version|0.22}}
====几何约束====
不与数值数据关联


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 218: Line 283:
* [[Image:Constraint_PointOnObject.png|32px]] [[Sketcher ConstrainPointOnObject|Point On Object]]: 将点附加到另一对象上, 如直线、圆弧或轴。
* [[Image:Constraint_PointOnObject.png|32px]] [[Sketcher ConstrainPointOnObject|Point On Object]]: 将点附加到另一对象上, 如直线、圆弧或轴。
</div>
</div>

* <span id="Sketcher_CompHorVer">[[Image:Sketcher_ConstrainHorVer.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]]Horizontal/Vertical constraints:</span><!--Do not edit span id: the Sketcher_CompHorVer pages redirect here-->

:* [[File:Sketcher_ConstrainHorVer.svg|32px]] [[Sketcher_ConstrainHorVer|Horizontal/Vertical]]: TBD. {{Version|0.22}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Constraint_Vertical.png|32px]] [[Sketcher ConstrainVertical|Vertical]]: 将所选线条或折线元素约束为真正的垂直方向。在应用此约束之前, 可以选择多个对象。
* [[Image:Constraint_Horizontal.png|32px]] [[Sketcher ConstrainHorizontal|Horizontal]]: 将所选线条或折线元素约束为真正的水平方向。在应用此约束之前, 可以选择多个对象。
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Constraint_Horizontal.png|32px]] [[Sketcher ConstrainHorizontal|Horizontal]]: 将所选线条或折线元素约束为真正的水平方向。在应用此约束之前, 可以选择多个对象。
* [[Image:Constraint_Vertical.png|32px]] [[Sketcher ConstrainVertical|Vertical]]: 将所选线条或折线元素约束为真正的垂直方向。在应用此约束之前, 可以选择多个对象。
</div>
</div>


Line 247: Line 316:
</div>
</div>


* [[Image:Sketcher_ConstrainBlock.svg|32px]] [[Sketcher_ConstrainBlock|Block]]: it blocks an edge from moving, that is, it prevents its vertices from changing their current positions. It should be particularly useful to fix the position of B-Splines. See the [https://forum.freecadweb.org/viewtopic.php?f=9&t=26572 Block Constraint forum topic]. {{Version|0.17}}
* [[Image:Sketcher_ConstrainBlock.svg|32px]] [[Sketcher_ConstrainBlock|Block]]: it blocks an edge from moving, that is, it prevents its vertices from changing their current positions. It should be particularly useful to fix the position of B-Splines. See the [https://forum.freecadweb.org/viewtopic.php?f=9&t=26572 Block Constraint forum topic].


* <span id="Sketcher_CompDimensionTools">[[Image:Sketcher_Dimension.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Dimensional constraints:</span><!--Do not edit span id: the Sketcher_CompDimensionTools pages redirect here-->
====尺寸約束====
'''与数值数据关联'''


:* [[File:Sketcher_Dimension.svg|32px]] [[Sketcher_Dimension|Dimension]]: TBD. {{Version|0.22}}
对于这些约束, 可以使用[[Expressions/zh-cn|表达式]]。数据可能取自 [[Spreadsheet_Workbench/zh-cn|电子表格]]


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 258: Line 326:
</div>
</div>


* [[File:Sketcher_ConstrainDistanceX.svg|32px]] [[Sketcher_ConstrainDistanceX|Horizontal distance]]: Fixes the horizontal distance between two points or line endpoints. If only one item is selected, the distance is set to the origin.
:* [[File:Sketcher_ConstrainDistanceX.svg|32px]] [[Sketcher_ConstrainDistanceX|Horizontal distance]]: Fixes the horizontal distance between two points or line endpoints. If only one item is selected, the distance is set to the origin.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 272: Line 340:
* [[Image:Constraint_InternalAngle.png|32px]] [[Sketcher_ConstrainAngle|Internal Angle]]: 定义两个选定行之间的内部角度。
* [[Image:Constraint_InternalAngle.png|32px]] [[Sketcher_ConstrainAngle|Internal Angle]]: 定义两个选定行之间的内部角度。
</div>
</div>

:* [[File:Sketcher_ConstrainDiameter.svg|32px]] [[Sketcher_ConstrainDiameter|Diameter]]: Defines the diameter of an arc or circle.

:* [[File:Sketcher_ConstrainRadiam.svg|32px]] [[Sketcher_ConstrainRadiam|Auto radius/diameter]]: Defines the radius of an arc, the diameter of a circle or the weight of a B-spline pole. {{Version|0.20}}

:* [[File:Sketcher_ConstrainAngle.svg|32px]] [[Sketcher_ConstrainAngle|Angle]]: Defines the internal angle between two selected lines.

==== Special constraints ====


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 277: Line 353:
</div>
</div>


==== Constraint tools ====
<div class="mw-translate-fuzzy">

* [[Image:Constraint_InternalAlignment.png |32px]] [[Sketcher_ConstrainInternalAlignment|Internal Alignment]]: 将所选元素与所选形状对齐 (例如, 一条线成为椭圆的主轴)。
The following tools can be used the change the effect of constraints:
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 285: Line 361:
</div>
</div>


* [[File:Sketcher_ToggleActiveConstraint.svg|32px]] [[Sketcher_ToggleActiveConstraint|Activate/Deactivate constraint]]: enable or disable an already placed constraint. {{Version|0.19}}
* [[File:Sketcher_ToggleActiveConstraint.svg|32px]] [[Sketcher_ToggleActiveConstraint|Activate/deactivate constraint]]: Enable or disable an already placed constraint.


<span id="Sketcher_tools"></span>
===构图工具===
===草图工具===


* [[File:Sketcher_SelectElementsWithDoFs.svg|32px]] [[Sketcher_SelectElementsWithDoFs|Select solver DOFs]]: Highlights in green the geometry with degrees of freedom (DOFs), i.e. not fully constrained. {{Version|0.18}}
* [[File:Sketcher_SelectElementsWithDoFs.svg|32px]] [[Sketcher_SelectElementsWithDoFs|Select unconstrained DoF]]: Highlights in green the geometry with degrees of freedom (DOFs), i.e. not fully constrained.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher CloseShape.png‎|32px]] [[Sketcher CloseShape|Close Shape]]: 通过对端点应用重合约束创建闭合形状 {{Version|0.15}}
* [[Image:Sketcher SelectConstraints.png‎|32px]] [[Sketcher SelectConstraints|Select Constraints]]: 选择草图编辑器元素的约束 {{Version|0.15}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher ConnectLines.png‎|32px]] [[Sketcher ConnectLines|Connect Edges]]: 通过对端点应用重合约束来连接构图编辑器元素 {{Version|0.15}}
* [[Image:Sketcher SelectElementsAssociatedWithConstraints.png‎|32px]] [[Sketcher SelectElementsAssociatedWithConstraints|Select Elements Associated with constraints]]: 选择与约束关联的草图编辑器元素 {{Version|0.15}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectConstraints.png‎|32px]] [[Sketcher SelectConstraints|Select Constraints]]: 选择编辑器元素的约束 {{Version|0.15}}
* [[Image:Sketcher SelectRedundantConstraints.png‎|32px]] [[Sketcher SelectRedundantConstraints|Select Redundant Constraints]]: 选择图的冗余约束 {{Version|0.15}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectElementsAssociatedWithConstraints.png‎|32px]] [[Sketcher SelectElementsAssociatedWithConstraints|Select Elements Associated with constraints]]: 选择约束关联的构图编辑器元素 {{Version|0.15}}
* [[Image:Sketcher SelectConflictingConstraints.png‎|32px]] [[Sketcher SelectConflictingConstraints|Select Conflicting Constraints]]: 选择草图的冲突约束 {{Version|0.15}}
</div>
</div>


* [[File:Sketcher_RestoreInternalAlignmentGeometry.svg|32px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/hide internal geometry]]: Recreates missing/deletes unneeded internal geometry of a selected ellipse, arc of ellipse/hyperbola/parabola or B-spline.
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectRedundantConstraints.png‎|32px]] [[Sketcher SelectRedundantConstraints|Select Redundant Constraints]]: 选择构图的冗余约束 {{Version|0.15}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectConflictingConstraints.png‎|32px]] [[Sketcher SelectConflictingConstraints|Select Conflicting Constraints]]: 选择图的冲突约束 {{Version|0.15}}
* [[Image:Sketcher SelectOrigin.png‎|32px]] [[Sketcher SelectOrigin|Select Origin]]: 选择图的原点 {{Version|0.15}}
</div>
</div>

* [[File:Sketcher_RestoreInternalAlignmentGeometry.svg|32px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/Hide internal geometry]]: Recreates missing/deletes unneeded internal geometry of a selected ellipse, arc of ellipse/hyperbola/parabola or B-spline.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectOrigin.png‎|32px]] [[Sketcher SelectOrigin|Select Origin]]: 选择图的原点 {{Version|0.15}}
* [[Image:Sketcher SelectHorizontalAxis.png‎|32px]] [[Sketcher SelectHorizontalAxis|Select Horizontal Axis]]: 选择图的水平轴 {{Version|0.15}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectVerticalAxis.png‎|32px]] [[Sketcher SelectVerticalAxis|Select Vertical Axis]]: 选择图的垂直轴 {{Version|0.15}}
* [[Image:Sketcher SelectVerticalAxis.png‎|32px]] [[Sketcher SelectVerticalAxis|Select Vertical Axis]]: 选择图的垂直轴 {{Version|0.15}}
</div>
</div>


* [[Image:Sketcher SelectHorizontalAxis.png‎|32px]] [[Sketcher SelectHorizontalAxis|Select Horizontal Axis]]: 选择草图的水平轴 {{Version|0.15}}
* [[File:Sketcher_Offset.svg|32px]] [[Sketcher_Offset|Offset geometry]]: Adds an equidistant outline around selected edges. {{Version|0.22}}


* [[File:Sketcher_Symmetry.svg|32px]] [[Sketcher_Symmetry|Symmetry]]: Copies a sketcher element symmetrical to a chosen line {{Version|0.16}}
* [[File:Sketcher_Rotate.svg|32px]] [[Sketcher_Rotate|Polar transform]]: TBD. {{Version|0.22}}


* [[File:Sketcher_Clone.svg|32px]] [[Sketcher_Clone|Clone]]: Clones a sketcher element {{Version|0.16}}
* [[File:Sketcher_Symmetry.svg|32px]] [[Sketcher_Symmetry|Symmetry]]: Copies a sketcher element symmetrical to a chosen line.


* [[File:Sketcher_Copy.svg|32px]] [[Sketcher_Copy|Copy]]: Copies a sketcher element {{Version|0.16}}
* [[File:Sketcher_Clone.svg|32px]] [[Sketcher_Clone|Clone]]: Clones a sketcher element.


* [[File:Sketcher_Move.svg|32px]] [[Sketcher_Move|Move]]: Moves the selected geometry taking as reference the last selected point. {{Version|0.18}}
* [[File:Sketcher_Copy.svg|32px]] [[Sketcher_Copy|Copy]]: Copies a sketcher element.


* [[File:Sketcher_Move.svg|32px]] [[Sketcher_Move|Move]]: Moves the selected geometry taking as reference the last selected point.
* [[File:Sketcher_RectangularArray.svg|32px]] [[Sketcher_RectangularArray|Rectangular Array]]: Creates an array of selected sketcher elements {{Version|0.16}}


* [[File:Sketcher_DeleteAllGeometry.svg|32px]] [[Sketcher_DeleteAllGeometry|Delete All Geometry]]: Deletes all geometry from the sketch. {{Version|0.18}}
* [[File:Sketcher_RectangularArray.svg|32px]] [[Sketcher_RectangularArray|Rectangular array]]: Creates an array of selected sketcher elements.


* [[File:Sketcher_DeleteAllConstraints.svg|32px]] [[Sketcher_DeleteAllConstraints|Delete All Constraints]]: Deletes all constraints from the sketch. {{Version|0.18}}
* [[File:Sketcher_RemoveAxesAlignment.svg|32px]] [[Sketcher_RemoveAxesAlignment|Remove axes alignment]]: Remove axes alignment while trying to preserve the constraint relationship of the selection. {{Version|0.20}}

* [[File:Sketcher_DeleteAllGeometry.svg|32px]] [[Sketcher_DeleteAllGeometry|Delete all geometry]]: Deletes all geometry from the sketch.

* [[File:Sketcher_DeleteAllConstraints.svg|32px]] [[Sketcher_DeleteAllConstraints|Delete all constraints]]: Deletes all constraints from the sketch.


===Sketcher B-spline tools===
===Sketcher B-spline tools===


* [[File:Sketcher_BSplineApproximate.svg|32px]] [[Sketcher_BSplineApproximate|Convert geometry to B-spline]]: Converts compatible geometry, edges and curves, into a B-spline.
* [[File:Sketcher_BSplineDegree.svg|32px]] [[Sketcher_BSplineDegree|Show/hide B-spline degree]]


* [[File:Sketcher_BSplinePolygon.svg|32px]] [[Sketcher_BSplinePolygon|Show/hide B-spline control polygon]]
* [[File:Sketcher_BSplineIncreaseDegree.svg|32px]] [[Sketcher_BSplineIncreaseDegree|Increase B-spline degree]]: Increases the degree (order) of a B-spline.


* [[File:Sketcher_BSplineComb.svg|32px]] [[Sketcher_BSplineComb|Show/hide B-spline curvature comb]]
* [[File:Sketcher_BSplineDecreaseDegree.svg|32px]] [[Sketcher_BSplineDecreaseDegree|Decrease B-spline degree]]: Decreases the degree (order) of a B-spline.


* [[File:Sketcher_BSplineKnotMultiplicity.svg|32px]] [[Sketcher_BSplineKnotMultiplicity|Show/hide B-spline knot multiplicity]]
* [[File:Sketcher_BSplineIncreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineIncreaseKnotMultiplicity|Increase knot multiplicity]]: Increases the multiplicity of a B-spline knot.


* [[File:Sketcher_BSplineDecreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineDecreaseKnotMultiplicity|Decrease knot multiplicity]]: Decreases the multiplicity of a B-spline knot.
* [[File:Sketcher_BSplineConvertToNURB.svg|32px]] [[Sketcher BSplineConvertToNURB|Convert geometry to B-spline]]


* [[File:Sketcher_BSplineIncreaseDegree.svg|32px]] [[Sketcher_BSplineIncreaseDegree|Increase B-spline degree]]
* [[File:Sketcher_BSplineInsertKnot.svg|32px]] [[Sketcher_BSplineInsertKnot|Insert knot]]: Inserts a knot into an existing B-spline. {{Version|0.20}}


* [[File:Sketcher_BSplineDecreaseDegree.svg|32px]] [[Sketcher_BSplineDecreaseDegree|Decrease B-spline degree]], currently this command is not implemented. {{Version|0.19}}
* [[File:Sketcher_JoinCurves.svg|32px]] [[Sketcher_JoinCurves|Join curves]]: Joins two curves at selected end points. {{Version|0.21}}


===Sketcher visual===
* [[File:Sketcher_BSplineIncreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineIncreaseKnotMultiplicity|Increase knot multiplicity]]


* [[File:Sketcher_SwitchVirtualSpace.svg|32px]] [[Sketcher_SwitchVirtualSpace|Switch virtual space]]: Allows you to hide all constraints of a sketch and make them visible again.
* [[File:Sketcher_BSplineDecreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineDecreaseKnotMultiplicity|Decrease knot multiplicity]]


* [[File:Sketcher_BSplineDegree.svg|32px]] [[Sketcher_BSplineDegree|Show/hide B-spline degree]]: Shows or hides the display of the degree of a B-spline.
===Sketcher virtual space===


* [[File:Sketcher_SwitchVirtualSpace.svg|32px]] [[Sketcher_SwitchVirtualSpace|Switch Virtual Space]]: Allows you to hide all constraints of a sketch and make them visible again. {{Version|0.17}}
* [[File:Sketcher_BSplinePolygon.svg|32px]] [[Sketcher_BSplinePolygon|Show/hide B-spline control polygon]]: Shows or hides the display of the defining polygon of a B-spline.


* [[File:Sketcher_BSplineComb.svg|32px]] [[Sketcher_BSplineComb|Show/hide B-spline curvature comb]]: Shows or hides the display of the curvature comb of a B-spline.
===Preferences===


* [[File:Sketcher_BSplineKnotMultiplicity.svg|32px]] [[Sketcher_BSplineKnotMultiplicity|Show/hide B-spline knot multiplicity]]: Shows or hides the display of the knot multiplicity of a B-spline.
* [[Image:Preferences-general.svg|32px]] [[Sketcher_Preferences|Preferences]]: Preferences for the '''Sketcher''' workbench.


* [[File:Sketcher_BSplinePoleWeight.svg|32px]] [[Sketcher_BSplinePoleWeight|Show/hide B-spline control point weight]]: Shows or hides the display of the weights for the control points of a B-spline.

* [[File:Sketcher_ArcOverlay.svg|32px]] [[Sketcher_ArcOverlay|Show/hide circular helper for arcs]]: TBD. {{Version|0.22}}

===Obsolete tools===

<div class="mw-translate-fuzzy">
* [[Image:Sketcher CloseShape.png‎|32px]] [[Sketcher CloseShape|Close Shape]]: 通过对端点应用重合约束创建闭合形状 {{Version|0.15}}
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher ConnectLines.png‎|32px]] [[Sketcher ConnectLines|Connect Edges]]: 通过对端点应用重合约束来连接草图编辑器器元素 {{Version|0.15}}
</div>

== Preferences ==

* [[Image:Workbench_Sketcher.svg|32px]] [[Sketcher_Preferences|Preferences]]: Preferences for the '''Sketcher''' workbench.

== Best Practices ==

<div class="mw-translate-fuzzy">
== 最佳做法 ==
== 最佳做法 ==
每个CAD用户随着时间的推移发展自己的工作方式,但跟随一些有用的一般原则。
每个CAD用户随着时间的推移发展自己的工作方式,但跟随一些有用的一般原则。
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 382: Line 481:
</div>
</div>


<span id="Tutorials"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
===教程===
===教程===
* [[Sketcher_Tutorial/zh-cn|草图编辑器教程]]
* [[Sketcher_tutorial/zh-cn|草图编辑器教程]]为初学者
* [[Sketcher_Micro_Tutorial_-_Constraint_Practices/zh-cn|草图编辑器微教程 - 约束实践]]
</div>
</div>


* [https://forum.freecadweb.org/viewtopic.php?f=36&t=30104 Sketcher tutorial] by chrisb. This is a 70-page long PDF document that serves as a detailed manual for the sketcher. It explains the basics of Sketcher usage, and goes into a lot of detail about the creation of geometrical shapes, and each of the constraints.
* [https://forum.freecadweb.org/viewtopic.php?f=36&t=30104 Sketcher tutorial] by chrisb. This is a 70-page long PDF document that serves as a detailed manual for the sketcher. It explains the basics of Sketcher usage, and goes into a lot of detail about the creation of geometrical shapes, and each of the constraints.
* [[Basic Sketcher Tutorial|Basic Sketcher Tutorial]] for beginners
* [[Basic_Sketcher_Tutorial|Basic Sketcher Tutorial]] for beginners
* [[Sketcher Micro Tutorial - Constraint Practices|Sketcher Micro Tutorial - Constraint Practices]]
* [[Sketcher_Micro_Tutorial_-_Constraint_Practices|Sketcher Micro Tutorial - Constraint Practices]]
* [[Sketcher requirement for a sketch|Sketcher requirement for a sketch]] Minimum requirement for a sketch and Complete determination of a sketch
* [[Sketcher_requirement_for_a_sketch|Sketcher requirement for a sketch]] Minimum requirement for a sketch and Complete determination of a sketch

== Scripting ==

The [[Sketcher_scripting|Sketcher scripting]] page contains examples on how to create constraints from Python scripts.

== Examples ==

For some ideas of what can be achieved with Sketcher tools, have a look at: [[Sketcher_Examples|Sketcher examples]].

[[Image:Sketcher_ExampleHinge-01.gif|80px|link=]]
[[Image:Sketcher ExampleHinge-15.png|90px|link=]]




Line 399: Line 507:
</div>
</div>


{{Sketcher Tools navi{{#translation:}}}}
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
[[Category:Workbenches{{#translation:}}]]
[[Category:Workbenches{{#translation:}}]]

Latest revision as of 10:11, 24 January 2024

Sketcher workbench icon

简介

草图工作台用于创建用于 零件工作台 建筑工作台和其他工作台的二维几何图形。 通常,二维绘图被视为大多数CAD模型的起点,因为二维草图可以“拉伸”以创建三维形状;进一步的二维草图可以用于在先前构建的三维形状的基础上创建其他特征,如开槽“Pocket”、隆起“ridges”或拉伸。 草图绘制器与在零件设计工作台中定义的布尔操作一起构成了构建实体的构造实体几何方法的基础。此外,草图绘制器还与零件设计工作台操作一起构成了创建实体的特征编辑方法的基础。

草图工作台本身具有约束条件 - 允许将2D形状约束到精确的几何定义。以及一个约束求解器,它计算二维几何约束范围,并允许对草图自由度的交互式探索。

一个全约束草图

Basics of constraint sketching

约束草图的基础

为了解释草图编辑器的工作原理,将其与“传统的”起草方式进行比较可能是有用的。

Traditional Drafting

传统起草

CAD绘图的传统方式继承于旧的绘图板. 正交(2D)视图 手动绘制,用于生产技术图纸(也称为蓝图)。对象被精确地绘制到预期的尺寸或尺寸上。如果要从(0,0)开始绘制长度为100mm的水平线,您可以激活线条工具,点击屏幕或输入第一个点的(0,0)坐标,然后再次点击或在(100,0)处输入第二点坐标。或者你会画你的线,而不考虑它的位置,然后移动它。绘制几何图形后,可以向其添加尺寸。

Constraint Sketching

约束草图

草图远离这个逻辑。对象不需要完全按照您的意图进行绘制,因为它们将在稍后被约束定义。对象可以松散绘制,只要不受约束,就可以进行修改。它们实际上是“浮动”,可以移动,拉伸,旋转,缩放等等。这在设计过程中给予了很大的灵活性。

What are constraints?

什么是约束?

使用约束来限制对象的自由度。例如,没有约束的线条具有4 自由度(简写为“DOF”):可以水平或垂直移动,可以被拉伸,并且可以旋转。

应用水平或垂直约束或角度约束(相对于另一条线或与其中一条轴)将限制其旋转能力,从而使其具有3个自由度。锁定其原点之一的点将消除另外2个自由度。并且应用维度约束将消除最后的自由度。然后,该行被认为是“完全受限制的”。

多个对象可以彼此约束。可以通过其中一个点与重合点约束连接两条线。可以在它们之间设置一个角度,或者它们可以垂直设置。一条线可以与弧或圆相切,依此类推。具有多个对象的复杂草图将具有多种不同的解决方案,并使其“完全受约束”,这意味着基于所应用的约束只能达到其中一种可能的解决方案。

有两种约束:几何和尺寸。它们在下面的'工具'部分中详细介绍。

What the Sketcher is not good for

草图编辑器不擅长于

草图编辑器不打算制作2D蓝图。草图一旦用于生成实体特征后,会自动隐藏。约束仅在草图编辑模式下可见。

如果您仅需要生成2D视图进行打印,并不想创建3D模型,请查看底图工作台(请注意,底图工作台也可用于创建此时草图编辑器中不可用的2D几何,如B-Splines。)

The tool Draft2Sketch converts a Draft object to a Sketch object, and vice versa. Many tools that require a 2D element as input work with either type of object as an internal conversion is done automatically.

Sketching Workflow

草图工作流程

草图总是二维(2D)。要创建一个实体,创建单个封闭区域的2D草图,然后垫高或旋转以添加第三维,从2D草图创建3D实体。

如果草图具有彼此交叉的段,其中一个点不直接位于段上的位置,或相邻段的端点之间存在间隙的位置,垫高或旋转将不会创建一个实体。这个规则的例外是它不适用于构造(蓝色)几何对象。

在封闭区域内,我们可以有较小的非重叠区域。当创建3D实体时,这些将变为空白。

Once a Sketch is fully constrained, the Sketch features will turn green; Construction Geometry will remain blue. It is usually "finished" at this point and suitable for use in creating a 3D solid. However, once the Sketch dialog is closed it may be worthwhile going to Part Workbench and running Check geometry to ensure there are no features in the Sketch which may cause later problems.

Tools

工具

草图工作台工具都位于加载草图工作台时出现的草图菜单中。

introduced in version 0.21: If a sketch is in edit mode the Structure toolbar is hidden as none of its tools can then be used.

General

Sketcher toolbar

  • 创建草图: 在所选的面或平面上创建新的草图。如果在执行此工具时未选择任何面, 则系统将提示用户从弹出窗口中选择一个平面。
  • 校验草图…: 它允许你检查是否有不同点的公差和匹配。

Sketcher Edit Mode toolbar

  • 查看草图: 设置垂直于草图平面的模型视图。
  • 查看截面: 创建一个截面,并暂时隐藏此草图平面前侧的所有内容。

Sketcher edit tools toolbar

Other

  • Stop operation: When in edit mode, stop the current operation, whether that is drawing, setting constraints, etc.

草图编辑器几何工具

这是创建对象的工具。

  • Line by 2 point: 从2点绘制线段。对于特定的约束而言,此工具绘制的是无限长的直线。
  • Create arc:
  • Arc: 从中心,半径,起始角度和最终角度绘制弧段。
  • Arc by 3 Point: 根据圆周上的两个端点以及圆周上的另一个点来绘制弧段。
  • Create circle:
  • Circle: 从中心和半径画一个圆。
  • Create conic:
  • Ellipse by center: Draws an ellipse by center point, major radius point and minor radius point.
  • Arc of ellipse: Draws an arc of ellipse by center point, major radius point, starting point and ending point.
  • B-spline:
  • Create rectangle:
  • Rectangle: 从两个相反的点绘制一个矩形。
  • Create regular polygon:
  • Triangle: 在几何圆草图中绘制一个正三角形。
  • Square: 在几何圆草图中绘制一个正方形。
  • Pentagon: 在几何圆草图中绘制一个正五面。
  • Hexagon: 在几何圆草图中绘制一个正六边形。
  • Heptagon: 在几何圆草图中绘制一个正七边形。
  • Octagon: 在几何圆草图中绘制一个正八边形。
  • Create Regular Polygon : 根据指定的边数与拾取的两个点:中点与一个角点来绘制一个正多边形。
  • Create slot:
  • Slot: 通过选择一个半圆的中心和另一个半圆的终点绘制椭圆。
  • Create fillet:
  • Fillet: 在一条线之间加入两条线之间的圆角。选择两行或单击角点,然后激活该工具。
  • Corner-preserving fillet: Creates a fillet between two non-parallel lines while preserving their (virtual) intersection.
  • Edit edge:
  • Trimming: 相对于点击的点修剪线,圆或圆弧。
  • Construction Mode: 将元素切换 到/从 草图模式。对象草图不会在3D几何操作中使用,并且仅在编辑包含它的草图时可见。这是 v0.15 中使用的图标。直到FreeCAD v0.16,用户必须先在草图编辑器中创建常规(白色)几何对象,然后使用此工具将其更改为“几何草图”(蓝色)。
  • Construction Mode: 在FreeCAD v0.16中,添加了在构造模式下直接创建几何的能力,因此图标已更改为该图形。选择现有的草图编辑器几何图形,然后单击此工具可以在常规和构造模式之间切换几何图形,就像以前的FreeCAD版本一样。从FreeCAD v0.16开始,当没有选择草图编辑器几何图形时,选择此工具会更改将要创建将来的对象的模式(常规与构造)。

草图编辑器约束

约束用于定义长度、在草图元素之间设置规则以及沿垂直和水平轴锁定草图。某些约束要求 辅助约束

  • Coincident: 在一个或多个点上(同时)附加一个点。
  • Point On Object: 将点附加到另一对象上, 如直线、圆弧或轴。
  • Horizontal/Vertical constraints:
  • Horizontal: 将所选线条或折线元素约束为真正的水平方向。在应用此约束之前, 可以选择多个对象。
  • Vertical: 将所选线条或折线元素约束为真正的垂直方向。在应用此约束之前, 可以选择多个对象。
  • Parallel: 约束两条或多行平行于彼此。
  • Perpendicular: 约束两条垂直于彼此的线, 或约束垂直于弧线端点的直线。
  • Tangent: 在两个所选实体之间创建切线约束, 或在两个线段之间建立共线约束。 直线段不必直接位于圆弧或圆上, 而将其与圆弧或圆相切。
  • Equal Length: 约束两个选定的实体彼此相等。 如果在圆或弧形上使用它们的半径将被设置为相等。
  • Symmetric: 将两个点对称地约束在一条直线上, 或者将前两个点对称地限制在第三个选定点上。
  • Block: it blocks an edge from moving, that is, it prevents its vertices from changing their current positions. It should be particularly useful to fix the position of B-Splines. See the Block Constraint forum topic.
  • Dimensional constraints:
  • Lock: 通过设置相对于原点的垂直和水平距离来约束选定项, 从而锁定该项的位置。这些约束距离可以在以后进行编辑。
  • Horizontal distance: Fixes the horizontal distance between two points or line endpoints. If only one item is selected, the distance is set to the origin.
  • Vertical Distance: 修复两点或线端点之间的水平距离。如果只选择一项, 则将距离设置为原点。
  • Distance: 通过限制选定行的长度来定义其距离, 或通过限制两点之间的距离来定义它们之间的距离。
  • Radius: 通过限制半径来定义所选圆弧或圆的半径。
  • Internal Angle: 定义两个选定行之间的内部角度。
  • Diameter: Defines the diameter of an arc or circle.
  • Angle: Defines the internal angle between two selected lines.

Special constraints

Constraint tools

The following tools can be used the change the effect of constraints:

草图工具

  • Show/hide internal geometry: Recreates missing/deletes unneeded internal geometry of a selected ellipse, arc of ellipse/hyperbola/parabola or B-spline.
  • Symmetry: Copies a sketcher element symmetrical to a chosen line.
  • Clone: Clones a sketcher element.
  • Copy: Copies a sketcher element.
  • Move: Moves the selected geometry taking as reference the last selected point.

Sketcher B-spline tools

Sketcher visual

Obsolete tools

Preferences

Best Practices

最佳做法

每个CAD用户随着时间的推移发展自己的工作方式,但跟随一些有用的一般原则。

  • 一系列简单的草图比单个复杂的草图更容易管理。例如,可以为基础3D特征(衬垫或旋转)创建第一个草图,而第二个可以包含孔或切口(凹坑)。一些细节可以省略,稍后将作为3D功能实现。如果太多,你可以选择避免草图中的圆角,并将其添加为3D功能。
  • 始终创建一个封闭的配置文件,或者你的草图不会产生实体,而是一组开放的面。如果你不希望将某些对象包含在实体创建中,请使用“构造模式”工具将其转换为构造元素。
  • 使用自动约束特性来限制你必须手动添加的约束数量。
  • 作为一般规则,首先应用几何约束,然后应用尺寸约束,并最后锁定草图。但请记住:规则被破坏。如果你在操作草图时遇到问题,在完成配置文件之前先限制几个对象可能很有用。
  • 如果可能,将草图中心定位到具有锁定约束的原点(0,0)。如果你的草图不对称,请将其中一个点定位到原点,或者为锁定距离选择好的圆角参数。在v0.12中,外部约束(将草图约束到现有3D几何像边缘或其他草图)未实现。这意味着要将以下草图定位到你的第一个草图中,你需要手动设置相对于你的第一个草图的距离。一个基于原点的(25,75)的锁定约束比(23.47,73.02)更容易记住。
  • 如果你有可能在长度约束和水平或垂直距离约束之间进行选择,则选择后者。水平和垂直距离约束在计算上更便宜。
  • 一般来说,最好使用的约束是:水平和垂直约束;水平和垂直长度约束;点对点相切。如果可能,限制使用这些:一般长度约束;边缘到边缘相切;固定点到线约束;对称约束

教程

Scripting

The Sketcher scripting page contains examples on how to create constraints from Python scripts.

Examples

For some ideas of what can be achieved with Sketcher tools, have a look at: Sketcher examples.