Feature editing/ru

From FreeCAD Documentation
Jump to: navigation, search
This page is a translated version of the page Feature editing and the translation is 33% complete.

Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎hrvatski • ‎italiano • ‎română • ‎русский • ‎Türkçe

Введение

This page explains the way the PartDesign Workbench is intended to be used starting with FreeCAD 0.17.

В то время как верстак Part и прочие верстаки FreeCAD конструируют модели комбинированием форм, верстак PartDesign использует features. Feature это операция, модифицирующая форму модели.

Feature editing methodology

Первая feature обычно называется base feature. По мере добавления features к модели, каждая feature берёт форму предыдущей и добавляет или убирает matter, создавая последовательность зависимостей от одной feature к другой. Как результат, эта методология имитирует общие производственные процессы: блок обрезается по одной стороне, затем по другой, добавляются отверстия, скругления и так далее.

Все features перечислены последовательно в древе модели и могут редактироваться в любое время, где последняя feature внизу представляет итоговую деталь.

Возможности могут быть отсортированы по различным категориям:

  • Profile-based: эти features основываются на профиле для определения формы добавляемого или удаляемого материала. Профиль может быть эскизом, плоской гранью существующей геометрии (профиль будет выделен из кромки), объект ShapeBinder или Draft, который был включён в активное Тело.
  • Additive: добавляют материал к существующей модели. Аддитивные features показываются жёлтыми иконками.
  • Subtractive: убирают материал из существующей модели. Субтрактивные features показывают красные и голубые иконки.
  • Primitive-based: базирующиеся на геометрических примитивах (куб, цилиндр, конус, тор…). Они могут быть аддитивными или субтрактивными.
  • Transformation features: они применяют трансформацию к существующим features (отражение, линейный или полярный паттерн, мультитрансформация).
  • Dress-up: features, которые пликладывают обработку к фаскам или граням, такие как скругления, фаски, или drafts.
  • Procedural: могут быть отнесены к features, которые не базируются на эскизировании, вроде трансформаций и dress-up features.

Твёрдое тело

Body это контейнер, группирующий последовательность из feature, формирующих единое монолитное тело.

PartDesign Body tree.png

Что значит единое монолитное тело? Это элемент вроде литья или чего-то выточенного из единого блока металла. Если он включает гвозди, винты, клей или пайку, это не единое монолитное тело. Например, деревянный стул изготавливается из нескольких тел, по одному для каждого из компонентов (ножки, планки, сиденья и так далее).

В документе FreeCAD могут быть создано несколько тел, они могут быть скомбинированы для формирования единого монолитного твёрдого тела.

Only one body can be active in a document. The active body gets the new created features. A body can be activated or deactivated by double clicking on it. An activated body is highlighted in light blue. The highlighting color can be set in the preferences under Display/Colors/Active container since version 0.18.

Когда модель требует несколько тел, как в предыдущем примере деревянного стула, может быть использован Part container общего назначения для их группировки и совместного их перемещения как единого целого.

Body visibility management

По умолчанию тело (Body) представляется извне самым последним элементом. Этот элемент определяется по умолчанию как верхушка. Хорошая аналогия - выражение верхушка айсберга: только верхушка видна над водой, большая часть объёма айсберга (остальные элементы) скрыты. Когда новые feature добавляются к телу, видимость предыдущих отключается, и верхушкой становятся новые.

Только одна feature может быть видима одновременно. Возможно переключение видимости любой feature в теле, выбрав её в древе Модели и нажав пробел, получив в результате откат в истории создания тела.

Body Origin

The body has an Origin which consists of reference planes (XY, XZ, YZ) and axes (X, Y, Z) that can be used by sketches and features. Sketches can be attached to Origin planes, and they no longer need to be mapped to planar faces for features based on them to be added or subtracted from the model.

Перемещение и реорганизация объектов

It is possible to temporarily redefine the tip to a feature in the middle of the Body tree to insert new objects (features, sketches or datum geometry). It is also possible to reorder features under a Body, or to move them to a different Body. Select the object and right-click to get a contextual menu that will offer both options. The operation may be prevented if the object has dependencies in the source Body, such as being attached to a face. To move a sketch to another Body, it should not contain links to external geometry.

Difference with other CAD systems

A fundamental difference between FreeCAD and other programs, like Catia, is that FreeCAD doesn't allow you to have many disconnected solids in the same PartDesign Body. That is, a new feature should always be built on top of the previous one. Or said in a different way, the newer feature should "touch" the previous feature, so that both features are fused together and become a single solid. You cannot have "floating" solids.

FreeCAD-Catia datum planes.png

Difference between Catia and FreeCAD. Catia allows disconnected bodies from the previous features of the body; in FreeCAD this causes an error. The newer feature should always contact or intersect the previous feature, so that it is fused to it, and becomes a single body.


Datum geometry

Datum geometry consists of custom planes, lines, points or externally linked shapes. They can be created for use as reference by sketches and features. There is a multitude of attachment possibilities for datum objects.

In other CAD systems like Catia you can define a datum plane that is offset from the previous body and you can create a disconnected solid. So, placing a lot of datum planes, and building objects on them is okay and won't cause an error. Typically, you would eventually adjust the planes to their final positions, so that the individual objects are fused together.

In FreeCAD, datum planes make sense if you are placing sketches (and padding) in non-standard orientations, that is, in planes rotated around the three main axes. For sketches that are placed with a simple offset from the XY, XZ, or YZ planes, often there is no need to use datum planes, as the faces of the previous feature can be used as supports. After all, in FreeCAD, the a new feature must be touching the previous feature, so you may as well use the previous feature as support.

Even if not used for supporting sketches, datum objects are still helpful as visual indicators, to draw attention to important features or distances in the modelling process.

FreeCAD-Catia datum planes slanted.png

Difference between Catia and FreeCAD. Catia allows disconnected bodies from the previous features of the body; in FreeCAD this causes an error. The newer feature should always contact or intersect the previous feature, so that it is fused to it, and becomes a single body. In this example, the new solid is based on a datum plane that is rotated around the Y axis.


Cross-referencing

It is possible to cross-reference elements from a body in another body via datums. For example the datum shape binder allows to copy over faces from a body as reference in another one. This should make it easy to build a box with fitting cover in two different bodies. FreeCAD helps you to not accidentally link to other bodies and queries your intent.

Attachment

Object attachment is not a specific PartDesign tool, but rather a Part utility introduced in v0.17 that can be found in the Part menu. It is heavily used in the PartDesign workbench to attach sketches and reference geometry to the standard planes and axes of the Body. Very extensive ways of creating datum points, lines and planes are available. Optional attachment offset parameters make this tool very versatile.

More info can be found in the Attachment page.

Advice for creating stable models

The idea of parametric modeling implies that you can change the values of certain parameters and subsequent steps are changed according to the new values. However, when severe changes are made, the model can break due to the topological naming issue that is still unresolved in FreeCAD. Compared to previous FreeCAD versions, breakage can be minimized when you respect the following design principles:

  • Avoid as much as possible mapping sketches to faces of the model. Place your sketches on standard planes, or on custom datum planes. Sketches attached to planes are less at risk of being unexpectedly reattached to a different reference.
  • When creating datum geometry, do not base it on the part topology, base it on standard planes/axes and/or sketches.
  • Use a "master sketch". That is a preferably not too complicated sketch which contains basic geometric elements of your model. These elements can be referenced when modeling subsequent features. Such a master sketch will often be the first sketch in the Body but it doesn't have to be; in fact you don't even have to use it at all for anything else but being referenced.
  • If you inevitably have to reference an intermediate feature, e.g. the result of a thickness operation, use the first reference possible in the list of subsequent features where the referenced geometric element occurs. From FreeCAD 0.17 on you don't have to use the latest feature. If you take an early feature as reference, all changes to intermediate steps won't break your model. And again it is better to reference a sketch than edges and vertices of a solid.

Body building workflow

There are several workflows that are possible with the PartDesign Workbench. What should always be noticed is that all the features created inside a PartDesign Body will be fused together to obtain the final object.

Different sketches

Sketches need to be supported by a plane. This plane can be one of the main planes (XY, XZ, or YZ) defined by the Origin of the Body. A sketch is either extruded into a positive solid (additive), with a tool like PartDesign Pad, or into a negative solid (subtractive), with a tool like PartDesign Pocket. The first adds volume to the final shape of the body, while the latter cuts volume from the final shape. Any number of sketches and partial solids can be created in this way; the final shape (tip) is the result of fusing these operations together. Naturally, the Body can't consist of only subtractive operations, as the final shape should be a solid.

PartDesign workflow 1.svg

Sequential features

Sketches can be supported by the faces of previous solid operations. This may be necessary if you need to access a face that is only available after a certain feature has been created. However, this workflow isn't the most recommended as if the original feature is modified, the following features in the sequence may break.

PartDesign workflow 2.svg

Use of datum planes for support

Datum planes are useful to support the sketches. These auxiliary planes can be based on the Origin of the Body, or can be based on the features (edges, faces) of previously created solids. In addition, a PartDesign ShapeBinder can be used to import external geometry into the body to serve as reference; then sketches can be attached to this auxiliary body, either using datum planes or not. Using datum objects is often the best way to produce stable models, although it requires a bit more work from the user.

PartDesign workflow 3.svg