Part Extrude/zh-cn

描述
零件挤型工具根据用户指定的距离以特定方向将一个形状挤压成型. 根据输入的形状类型与可选项的具体选择，输出的形状类型会有所不同.

下列内容为：在大多常见的情景中，根据指定的输入形状类型可能输出的形状类型，
 * 对一个顶点（点）进行挤型操作，将生成一个线性的边（线）
 * 对一个开放的边（例如，线、弧）进行挤型操作，将生成一个开放的面（如，平面）
 * 对一个闭合的边（例如，圆）进行挤型操作，将生成一个闭合面（如，一个开放端面的圆柱体），或者，如果如果参数"solid"为"true"将生成一个实体（如，一个闭合的实心圆柱体）
 * 对一个开放的连线（例如，一条底图连线）进行挤型操作，将生成一个开放的壳（若干互连的面）
 * 对一个闭合的连线（例如，一条底图连线）进行挤型操作，将根据可选项生成一个壳（若干连接的面），如果参数"solid"为"true"将生成一个实体
 * 对一个面（例如，平面）进行挤型操作，将生成一个实体（例如，长方体）
 * 对一个Draft Shape String进行挤型操作，将生成一个复合实体（生成的字符串是由多个字母实体复合而成）
 * 对壳中的多个面进行挤型操作，将生成一个复合实体.

如何使用

 * 1) 在3D视图或模型树中选中待挤型的（多个）形状
 * 2) 点击工具栏中的 图标，或前往Part → Extrude菜单
 * 3) 设置挤型的方向与长度，以及其他可选参数（参见后面的参数部分获得更多详情）.
 * 4) 单击OK.

Alternatively, the selection can be done after launching the tool, by selecting one or more shape from the list in the Tasks panel.

The Model tree will list as many Extrude objects as there were selected shapes. Each input shape is placed underneath its Extrude object.

Parameters
The Extrude shape is defined by the following parameters, which can be edited after its creation in the Data tab.


 * Base: the input shape (the shape upon which the Part Extrude was applied)


 * Dir: the direction to extend the shape. If Dir Mode is 'Custom', you can edit Dir. Otherwise, Dir is read-only, and computed from the linked shape.


 * Dir Link: parametric link to a edge (line) that sets the direction of extrusion. As of v0.17, this property is not supported by property editor.


 * Dir Mode: sets how Dir is controlled. 'Custom' means Dir is editable. 'Edge' means Dir is obtained from an edge (line) linked by Dir Link. 'Normal' means Dir is perpendicular to plane of the input shape.


 * Length Fwd: The distance to extrude by. If both Length Fwd and Length Rev are zero, the length of Dir vector is used.


 * Length Rev: Additional length to extrude against Dir.


 * Solid: if True, extruding a closed edge or a closed wire will yield a solid. If False, a shell will result.


 * Reversed: reverses the extrusion to go against Dir.


 * Symmetric: if True, extrusion is centered at the input shape, and total length is Length Fwd. Length Rev is ignored.


 * Taper Angle and Taper Angle Rev: applies an angle to the extrusion, so that sides of the extrusion are drafted by the specified angle. Positive angle means the cross-section expands. Taper Angle Rev sets the taper for the reversed part of the extrusion (the part from Length Rev). As of v0.17, tapered extrusion is only supported for wires with no holes. Taper does not work well if the extruded shape contains B-splines.


 * Face Maker Class: sets C++ class name of face making code, which is used when making solids from wires. This property is here mainly for maintaining backward compatibility. Do not touch, unless you know what you are doing.


 * Placement: the standard placement parameters


 * Label: label to be shown in the Model tree (not available on Extrude creation)

Task dialog



 * OK: creates the extrusion, and closes the dialog.


 * Close: closes dialog, without doing anything.


 * Apply: creates the extrusion, but does not close the dialog. You can then select another shape in the list on the bottom, and create more extrusions. Clicking Apply may times creates many extrusions.


 * 'Direction' radio buttons: set the way extrusion direction is computed.


 * 'Select' button: click it, and then pick an edge in 3D view. That edge will appear in text field next to the button, in format "ObjectName:EdgeN". You can also type the link manually. Values X,Y,Z will be filled according to the edge direction.


 * X, Y, Z buttons: click X button to set extrusion direction to +X axis. Click it again to set -X axis.


 * X,Y,Z input fields: set or display the direction vector of extrusion. If both lengths are zero, the length of this vector sets the length of extrusion, and values are always in mm, regardless of unit preferences.


 * Length fields: set length of extrusion. These input fields have unit support.


 * Symmetric: spreads out the extrusion into both directions, so that the profile remains in the middle.


 * Taper Outward Angle: positive angle means profile is expanded at other end of extrusion.


 * Create Solid checkbox: if checked, extruding a closed wire or edge will yield a solid. It is checked by default, if a closed wire was preselected before invoking Part Extrude.


 * Shape list: here you select, what shapes to extrude. If multiple objects are selected, multiple Extrude objects are created.

Gotchas
Part Extrude dialog does not offer a preview, yet. 'Apply' will create an extrusion object every time you click it, which can be useful as preview; however, they will remain and yet another one will be created as you click OK. Undo can be useful to clean them up before clicking OK.

Since v0.17, a sketch created from within PartDesign cannot be used for Part Extrude, if it is within a Body ("Links go out of allowed scope" error). In order to Part-Extrude a sketch, you should create the sketch from Sketcher workbench. Or you can just drag a PartDesign one out of a Body.

Extrusion with taper angle does not support holes. It also may give bogus results if the number of segments in the profile changes as a result of taper.

Comparison with PartDesign Pad
PartDesign Pad is also an extrusion feature, but there are important differences.

Part Extrude always creates a standalone shape. PartDesign Pad fuses the extrusion result to the rest of the Body.

Part Extrude doesn't care where it is in model tree. PartDesign Pad can only live inside a PartDesign Body.

Part Extrude can extrude any object that has Part Geometry (OCC shape), except for solids and compsolids. And it can't extrude individual faces of other objects. PartDesign Pad will only accept a Sketch as a profile (and a small selection of other object types), or a face of a solid.