Rysunek Roboczy: Widok 2D kształtu
Draft Shape2DView |
Menu location |
---|
Modification → Shape 2D view |
Workbenches |
Draft, Arch, Part, TechDraw |
Default shortcut |
None |
Introduced in version |
- |
See also |
- |
Description
The Draft Shape2DView tool produces a 2D projection from a selected 3D solid object such as those created with the Part, PartDesign, and Arch Workbenches.
The resulting projection is a Draft object and is placed in the 3D view. This object can be displayed on a TechDraw Workbench page, using the TechDraw DraftView tool. Alternatively, TechDraw has its own tools to create projected views, the TechDraw View and TechDraw ProjectionGroup tools; however, these tools are meant for preparing technical drawings, so they create the views only in the drawing page, and not in the 3D view.
Projection of solid shapes into the XY plane
Usage
- Rotate the view so it reflects the direction of the desired projection. For example, a top view will project the object on the XY plane.
- Select a 3D object.
- Press the Draft Shape2DView button. If no object is selected, you will be invited to select one.
The projected object will be created below the selected object, lying on the XY plane. It's position can be changed by changing its properties. The projection direction can also be changed after creation with the property editor.
Note: If the selected object is an Arch SectionPlane, the projection will use the contents and direction of that Section plane; in this case, the "Projection" property will be ignored.
Options
There are no options for this tool. Either it works with the selected object or not.
Properties
- DANEProjection: specifies the direction of the projection as a vector. For example, (0,0,1) is a projection looking through the Z axis, which would be projected on the XY plane; (1,0,0) is a projection looking through the X axis, which would be projected on the YZ plane; (0,1,0) is a projection looking through the Y axis, which would be projected on the XZ plane. The values can also be negative, in which case the direction of projection is inverted.
- DANEProjection Mode: it can be "Solid", "Individual Faces", "Cutlines", "Cutfaces" and "Solid faces" (introduced in version 0.20).
- The default projection is "Solid", which projects the entire selected shape.
- If only some faces of the base object are selected, the "Individual Faces" mode will project only those faces.
- If the selected object is an Arch SectionPlane, the "Cutlines" mode will project only the edges being cut by the section plane.
- If the selected object is an Arch SectionPlane, the "Cutfaces" mode will display the cut areas of solids as faces.
- If "Solid faces" is selected, the projection will be obtained by cutting all individual faces one by one. This is useful when the "Solid" method gives wrong results.
- DANEIn Place: if it is
true
, together with "Cutlines" or "Cutfaces" modes, the resulting projection will appear co-planar with the Arch SectionPlane. introduced in version 0.17 - DANEHiddenLines: if it is
true
it will show the hidden lines of the projection. - DANETessellation: if it is
true
it will perform tessellation of ellipses and splines, that is, it will represent curves with very fine line segments.
- Note: this may be computationally intensive if DANESegment Length is very small.
- DANESegment Length: specifies the size in millimeters of linear segments if DANETessellation is
true
.
- Note: set a larger value first, and then change it to a smaller value to get better resolution.
- DANEVisible Only: if it is
true
the projection will be recomputed only if it is visible.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
The Draft Shape2DView tool can be used in macros and from the Python console by using the following function:
Shape2DView = makeShape2DView(baseobj, projectionVector=None, facenumbers=[])
- Creates
Shape2DView
as a projection of the givenbaseobj
.- If
facenumbers
is given, it is a list of face numbers to be considered for the projection.
- If
- If a
projectionVector
is given, it is used; otherwise the default projection is along the Z axis.
The ProjectionMode
attribute needs to be overwritten with the desired mode, which can be "Solid"
, "Individual Faces"
, "Cutlines"
, or "Cutfaces"
.
Example:
import FreeCAD, Draft
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 2300
Box.Width = 800
Box.Height = 1000
Shape1 = Draft.makeShape2DView(Box)
Shape2 = Draft.makeShape2DView(Box, FreeCAD.Vector(1, -1, 1))
Shape3 = Draft.makeShape2DView(Box, FreeCAD.Vector(-1, 1, 1), [4,5])
Shape3.ProjectionMode = "Individual Faces"
FreeCAD.ActiveDocument.recompute()
- Kreślenie: Linia, Polilinia, Zaokrąglenie, Łuk, Łuk przez 3 punkty, Okrąg, Elipsa, Wielokąt foremny, Krzywa złożona, Krzywa Bezier'a, Punkt, Łącznik ścian, Kształt z tekstu, Kreskowanie, Prostokąt
- Adnotacje: Adnotacja wieloliniowa, Wymiarowanie, Etykieta, Edytor stylów adnotacji, Widżet skali anotacji
- Modyfikacja: Przesuń, Obróć, Skala, Odbicie lustrzane, Odsunięcie, Przytnij, Rozciągnij, Klonuj, Szyk, Szyk biegunowy, Szyk kołowy, Szyk po ścieżce, Szyk powiązań po ścieżce, Szyk z punktów, Szyk powiązań w punktach, Edycja, Podświetl element podrzędny, Połącz, Rozdziel, Ulepsz kształt, Rozbij obiekt na elementy, Polilinia na krzywą złożoną, Rysunek Roboczy do szkicu, Nachylenie, Obróć wymiar, Widok 2D kształtu
- Tacka narzędziowa: Wybór płaszczyzny, Ustaw styl, Przełącz tryb konstrukcyjny, Grupowanie automatyczne
- Przyciąganie: Przełącz przyciąganie, Przyciągnij do punktu końcowego, Przyciągnij do punktu środkowego, Przyciągnij do środka, Przyciągnij do kąta, Przyciąganie do punktu przecięcia, Przyciągnij prostopadle, Rozszerz, Przyciągnij równolegle, Przyciągnij specjalnie, Przyciąganie do najbliższego, Przyciągnij ortogonalnie, Przyciągnij do siatki, Przyciągnij do płaszczyzny roboczej, Przyciągnij do wymiaru, Pokaż / ukryj siatkę
- Różności: Zastosuj bieżący styl, Warstwa, Zarządzaj warstwami, Dodaj grupę o nazwie, Dodaj do grupy, Wybierz grupę, Dodaj do grupy konstrukcyjnej, Przełącz tryb wyświetlania, Pośrednia płaszczyzna robocza, Ulecz, Przełącz tryb kontynuacji, Pokaż przybornik przyciągania
- Dodatkowe:: Wiązania, Wypełnienie wzorem, Preferencje, Ustawienia Importu i Eksportu, DXF/DWG, SVG, OCA, DAT
- Menu podręczne:
- Kontener warstwy: Połącz duplikaty warstw, Dodaj warstwę
- Warstwa: Aktywuj warstwę, Zaznacz zawartość warstwy
- Pośrednia płaszczyzna robocza: Zapisz ujęcie widoku, Zapisz stan obiektów
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Architektura, Assembly, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework