零件挤型

From FreeCAD Documentation
Revision as of 15:45, 24 February 2022 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Part Extrude

Menu location
Part → Extrude
Workbenches
Part
Default shortcut
None
Introduced in version
-
See also
Draft Trimex, PartDesign Pad

描述

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

下列内容为:在大多常见的情景中,根据指定的输入形状类型可能输出的形状类型,

  • 对一个顶点(点)进行挤型操作,将生成一个线性的边(线)
  • 对一个开放的边(例如,线、弧)进行挤型操作,将生成一个开放的面(如,平面)
  • 对一个闭合的边(例如,圆)进行挤型操作,将生成一个闭合面(如,一个开放端面的圆柱体),或者,如果如果参数"solid"为"true"将生成一个实体(如,一个闭合的实心圆柱体)
  • 对一个开放的连线(例如,一条底图连线)进行挤型操作,将生成一个开放的壳(若干互连的面)
  • 对一个闭合的连线(例如,一条底图连线)进行挤型操作,将根据可选项生成一个壳(若干连接的面),如果参数"solid"为"true"将生成一个实体
  • 对一个面(例如,平面)进行挤型操作,将生成一个实体(例如,长方体)
  • 对一个Draft Shape String进行挤型操作,将生成一个复合实体(生成的字符串是由多个字母实体复合而成)
  • 对壳中的多个面进行挤型操作,将生成一个复合实体。

如何使用

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

或者,可以先加载工具,而后再通过任务面板中的列表来选择待挤型的一个或多个形状。

操作完成后,模型树将列出与被选形状一样多的挤型对象。而每一个输入形状都将被置于其挤型对象之下。

Parameters

参数

挤型对象由下列参数定义而成,可在创建挤型对象后于数据选项卡中对其参数进行编辑调整。

  • Base: 输入的形状(挤型工具工作时要用到的基本形状)
  • Dir: 挤型方向。如果Dir Mode为'Custom',您就可以编辑Dir。 否则,Dir仅为只读,且根据连接形状(linked shape)开始计算。
  • Dir Link: 以参数化的方式连接至一条边(线),从而设置挤型方向。自v0.17版起,属性编辑器中不在支持此属性。
  • Dir Mode: 设置如何控制Dir参数。'Custom'选项意味着Dir是可编辑的。'Edge'表示Dir要通过Dir Link根据一条待连接的边(线)来确定。而'Normal'则表示Dir正交于输入形状的所在平面。
  • Length Fwd: 挤型的距离。如果Length FwdLength Rev皆为0,则采用Dir向量的长度。
  • Length Rev: 另一种与Dir方向相反的挤型长度。
  • Solid: 如果此项为True,对一条闭合边或一条闭合连线进行挤型,将生成一个对应实体。如果此项为False,则生成一个对应的壳。
  • Reversed: 将挤型对象调转至Dir的相反方向。
  • Symmetric: 如果此项为True,则以输入形状为中心向指定方向及其相反方向进行挤型,且挤型总长度为Length Fwd。并忽略Length Rev
  • 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).
    introduced in version 0.20 Inner structures receive the opposite taper angle. This is done to facilitate the design of molds and molded parts.
    version 0.19 and below Tapered extrusion is only supported for shapes without inner structures. Taper does not work well if the 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: 标准的定位参数集
  • Label: 显示在模型树中的标签(创建挤型对象后方可使用)

Task对话框

  • OK: 创建挤型对象,并关闭对话框。
  • Close: 关闭对话框,神马也不做。
  • Apply: 创建挤型对象,却并不关闭此对话框。您可以继续在下侧的列表中选择另一个形状,以此创建更多的挤型对象。点击Apply可以多次创建多个挤型对象。
  • 'Direction' 单选按钮:设置计算挤型方向的方式。
  • 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 按钮:点击X按钮来设置+X轴上的挤型方向。再次点击则设置-X轴上的挤型方向。
  • 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: 设置挤型的长度。此输入框支持用户输入的单位。
  • Symmetric: 以对称的方式向指定方向及其反向进行挤型,因此输入形状将位于生成挤型对象的中部。
  • Taper Outward Angle: positive angle means profile is expanded at other end of extrusion.
  • Create Solid checkbox: 如果选中此项,对一条闭合的连线或边进行挤型将生成一个对应实体。如果在调用挤型工具之前便提前选中了一条闭合连线,则此项是默认选中的。
  • Shape list: 在此选择待挤型的形状。如果选中了多个形状,则将创建多个挤型对象。

Notes

  • The task 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.
  • version 0.17 and above 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.

PartDesign Pad的比较

PartDesign Pad也是一种挤型功能,但是与本页描述的挤型工具大有不同。

  • 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 a Part geometry (OpenCASCADE shape), except for solids and CompSolids.
  • Part Extrude can extrude individual faces of other objects. PartDesign Pad will only accept either Sketch or faces of PartDesign objects as a profile.