Feature editing/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "Gdy model wymaga wielu zawartości, jak w poprzednim przykładzie z drewnianym krzesłem, można użyć 24px kontenera ogólnego przezna...")
(Created page with "Zawartość domyślnie prezentuje na zewnątrz swoją najnowszą cechę. Cecha ta jest domyślnie zdefiniowana jako wierzchołek. Dobrą analogią jest wyrażenie ''czubek gó...")
Line 46: Line 46:
===Zarządzanie widocznością Zawartości===
===Zarządzanie widocznością Zawartości===


Zawartość domyślnie prezentuje na zewnątrz swoją najnowszą cechę. Cecha ta jest domyślnie zdefiniowana jako wierzchołek. Dobrą analogią jest wyrażenie ''czubek góry lodowej'': tylko czubek jest widoczny nad wodą, większość masy góry lodowej (inne cechy) jest ukryta. Gdy nowa cecha jest dodawana do struktury, widoczność poprzedniej cechy jest wyłączana, a nowa cecha staje się wierzchołkiem.
A body will present by default its most recent feature to the outside. This feature is defined by default as the tip. A good analogy is the expression ''the tip of the iceberg'': only the tip is visible above the water, most of the iceberg's mass (the other features) is hidden. As a new feature is added to the body, visibility of the previous feature is turned off, and the new feature becomes the tip.


There can only be one feature visible at a time. It is possible to [[Std_ToggleVisibility|toggle the visibility]] of any feature in the body, by selecting it in the Model tree and pressing the {{KEY|Spacebar}}, in effect going back in the history of the body.
There can only be one feature visible at a time. It is possible to [[Std_ToggleVisibility|toggle the visibility]] of any feature in the body, by selecting it in the Model tree and pressing the {{KEY|Spacebar}}, in effect going back in the history of the body.

Revision as of 15:29, 6 August 2021

Wprowadzenie

Ta strona wyjaśnia sposób, w jaki środowisko pracy Projekt Części jest przeznaczone do użycia począwszy od FreeCAD w wersji 0.17.

Podczas gdy środowisko pracy Część oraz inne konstruują modele poprzez łączenie kształtów razem (zobacz Konstrukcyjna geometria bryłowa), środowisko Projekt Części używa cech. Cecha jest operacją, która modyfikuje kształt modelu.

Techniki edycji cech

Pierwsza cecha jest powszechnie nazywana "cechą bazową". W miarę jak kolejne cechy są dodawane do modelu, każda z nich przyjmuje kształt poprzedniej i dodaje lub usuwa materię, tworząc liniowe zależności od jednej cechy do następnej. W efekcie, ta metodyka naśladuje zwykły proces produkcyjny: blok jest cięty z jednej strony, potem z drugiej, dodawane są otwory, potem zaokrąglenia, itd.

Wszystkie cechy są wymienione kolejno w drzewie modelu i mogą być edytowane w dowolnym momencie, przy czym ostatnia cecha na dole reprezentuje wynik końcowy.

Cechy mogą być posortowane w różnych kategoriach:

  • Oparte na profilu: te cechy rozpoczynają się od profilu, aby zdefiniować kształt materiału, który ma zostać dodany lub usunięty. Profil może być szkicem, planarną powierzchnią na istniejącej geometrii (profil zostanie wyodrębniony z jej krawędzi), obiektem Łącznik Kształtu lub obiektem Rysunek Roboczy, który został włączony do aktywnej bryły.
  • Dodanie: powoduje dodanie materiału do istniejącego modelu. Cechy addytywne posiadają żółte ikony.
  • Odjęcie: powoduje usunięcie materiału z istniejącego modelu. Cechy subtraktywne mają czerwone i niebieskie ikony.
  • Oparte na elementach pierwotnych: oparte na geometrycznych prymitywach (sześcian, walec, stożek, torus...). Mogą być zarówno addytywne, jak i subtraktywne.
  • Cechy transformacji: stosują one przekształcenia do istniejących cech (odbicie lustrzane, wzór liniowy, wzór biegunowy, transformacja wielokrotna).
  • Ulepszenie: cechy, które stosują obróbkę do krawędzi lub powierzchni, takie jak zaokrąglenia, fazowania i przeciągnięcia.
  • Proceduralne: można tak powiedzieć o funkcjach, które nie są oparte na szkicach, takich jak funkcje transformacji i ulepszenia.

Zawartość

Praca w środowisku Projekt Części wymaga najpierw stworzenia obiektu Zawartości. Zawartość Projekt Części jest kontenerem, który grupuje sekwencję obiektów cech tworzących pojedynczą, ciągłą bryłę.

Co to jest pojedyncza ciągła bryła? Jest to obiekt taki jak odlew lub coś obrobionego z jednego kawałka metalu. Jeśli obiekt wymaga użycia gwoździ, śrub, kleju lub spawania, nie jest wtedy pojedynczą ciągłą bryłą. Jako praktyczny przykład, drewniane krzesło byłoby wykonane z wielu Zawartości, po jednej dla każdej z jego części składowych (nogi, listwy, siedzisko, itp.).

W dokumencie programu FreeCAD można utworzyć wiele Zawartości. Można je również połączyć w jedną ciągłą bryłę.

Tylko jedna Zawartość może być aktywna w dokumencie. Aktywna Zawartość otrzymuje nowo utworzone elementy. Korpus może być aktywowany lub dezaktywowany poprzez dwukrotne kliknięcie na nim. Aktywna Zawartość jest podświetlona na jasnoniebiesko. Kolor podświetlenia można ustawić w preferencjach w sekcji Edycja → Preferencje → Wyświetlanie → Kolory → Widok drzewa → Aktywna Zawartość, od wersji 0.18.

Gdy model wymaga wielu zawartości, jak w poprzednim przykładzie z drewnianym krzesłem, można użyć kontenera ogólnego przeznaczenia, może być on użyty do zgrupowania ich i poruszania całością jako jedną całością.

Zarządzanie widocznością Zawartości

Zawartość domyślnie prezentuje na zewnątrz swoją najnowszą cechę. Cecha ta jest domyślnie zdefiniowana jako wierzchołek. Dobrą analogią jest wyrażenie czubek góry lodowej: tylko czubek jest widoczny nad wodą, większość masy góry lodowej (inne cechy) jest ukryta. Gdy nowa cecha jest dodawana do struktury, widoczność poprzedniej cechy jest wyłączana, a nowa cecha staje się wierzchołkiem.

There can only be one feature visible at a time. It is possible to toggle the visibility of any feature in the body, by selecting it in the Model tree and pressing the Spacebar, in effect going back in the history of the body.

Odniesienie położenia Zawartości

Zawartość posiada obiekt Odniesienie położenia, który składa się z płaszczyzn odniesienia (XY, XZ, YZ) i osi (X, Y, Z), które mogą być używane przez szkice i cechy. Szkice mogą być dołączane do płaszczyzn Odniesienia położenia i nie muszą już być mapowane na płaszczyzny, aby cechy na nich oparte mogły być dodawane lub odejmowane z modelu.

Moving and Reordering Objects

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.

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

Odniesienie geometrii

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 some CAD systems 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, as mentioned in the previous section, disconnected solids are NOT allowed, so a sketch on a datum plane that would create a non-contiguous solid will fail.

In FreeCAD, datum planes make sense if you are placing sketches (and padding, pocketing, etc.) in non-standard orientations, that is, in planes offset or rotated around the three main axes. Since sketches can also be placed in non-standard orientations in the same way as datum planes, often there is no need to use datum planes.

Datum planes also make sense if there will be more than one sketch in the same non-standard orientation. In this case a datum plane can be used and the orientation only needs to be adjusted for the datum plane to adjust all associated sketches and the features created from the sketches.

Both sketches and datum planes should be attached to base planes. Referencing generated geometry (geometry that is the result of a feature creating operation, for example a pad or pocket) should be avoided since faces and edges get renamed and renumbered and the references no longer refer to the same thing. This is called topological instability and is due the way FreeCAD uses some external geometric libraries. Hopefully this will be improved in the future. (See Advice for creating stable models below).

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. (Though, simply adding geometry to a sketch also provides similar visual feedback.)

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

Wzajemne odniesienia

Możliwe jest powiązanie elementów z jednej zawartości w innej zawartości poprzez układy odniesienia. Na przykład łącznik kształtu układu odniesienia pozwala na kopiowanie powierzchni z jednej zawartości jako odniesienia do drugiej. Powinno to ułatwić zbudowanie obudowy z dopasowaną pokrywą w dwóch różnych zawartościach. FreeCAD pomaga uniknąć przypadkowego powiązania z innymi zawartościami, pytając o potwierdzenie chęci wykonania operacji.

Dołączenie

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 and the Basic Attachment Tutorial.

Porady dotyczące tworzenia stabilnych modeli

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 problem that is still unresolved in FreeCAD. Breakage can be minimized when you respect the following design principles:

  • Avoid attaching sketches and datum objects to generated geometry of the model. (Generated geometry is any face or edge created as a result of a pad, pocket, etc..)
  • Place your sketches on standard coordinate planes, or on custom datum planes attached to standard planes.
    • Sketches attached to basic coordinate planes/axes or to datum planes attached to coordinate planes/axes, will not get unexpectedly reattached to a different reference.
  • When creating datum geometry, do not attach it to generated geometry
    • Attach it to standard planes/axes and/or sketches or datum objects which use attachment offsets to standard planes/axes.
  • Use a "master sketch". Since a master sketch is done before rest of the model, it only references the coordinate planes/axes.
    • A master sketch should be as simple as possible, containing basic geometric elements of your model.
    • Master sketch elements can be referenced when modelling subsequent features.
    • A master sketch can be the first sketch in the Body, or outside the body completely
    • A master sketch can be referenced as external geometry or via a ShapeBinder.
  • Don't create ShapeBinders from generated geometry
  • Keep in mind that ShapeBinders can be an issue when geometry is deleted from the sketch it is based on.
  • 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.
    • If you take an early feature as reference, all changes to intermediate steps won't break your model.
    • Try to reference a sketch or sketch geometry rather than generated geometry.
  • Use dress ups, like fillets and chamfers, as late in the feature tree as possible
  • Note, using spreadsheets, dynamic data, master sketches, etc. generally produce more parametric models and help avoid the topological naming issue.

Przebieg pracy przy budowie zawartości

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.

Różne szkice

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 with a positive, non-zero volume.

Cechy sekwencyjne

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 recommended since, if the original feature is modified, the following features in the sequence may break. This is the topological naming problem.

Wykorzystanie płaszczyzn odniesienia do podparcia

Datum planes are useful to support the sketches. These auxiliary planes should be attached to the base planes of the body.

Note: In many cases, a sketch attached to a base plane with attachment offsets can accomplish the same function. Datums are particularly useful when multiple sketches or other constructs will use the datum. This means all changes to the datum will be apply to attached sketches, etc. Adding a single sketch to a datum, rather than using attachment offsets in the sketch properties, is an extra step and is essentially redundant.

As with sketches, it is possible to attach Datum planes to generated geometry (edges, faces of previously created solids), but this is not recommended since it can cause the topological naming problem.

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.

Again, the ShapeBinder should be based on Sketches from the previous body, not generated geometry.

Using datum objects is often the best way to produce stable models, when used with base planes and attachment offsets, although it requires a bit more work from the user. For details about basic attachment see: Basic Attachment Tutorial Note: while this tutorial talks about sketches, datum attachment is done in similar fashion.

Poradniki

Strona Poradniki zawiera kilka przykładów użycia metody Edycja cech w środowisku PartDesign_Workbench/pl.

Powiązane