Rysunek Roboczy: Widok 2D kształtu
Draft Shape2DView |
Menu location |
---|
Modification → Shape 2D view |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
Description
The Draft Shape2DView command creates 2D projections from selected objects, usually 3D solids or Arch SectionPlanes. The projections are placed in the 3D view.
Draft Shape2DView projections can be displayed on a TechDraw Workbench page using the TechDraw DraftView command. Alternatively the TechDraw Workbench offer its own projection commands. But these create projections that are only displayed on the drawing page and not in the 3D view.
Projection of solid shapes onto the XY plane
Usage
- Optionally rotate the 3D view. The camera direction in the 3D view determines the projection vector. For example, a top view will project onto the XY plane. The projection vector is ignore for projections created from Arch SectionPlanes.
- Optionally select one or more objects.
- There are several ways to invoke the command:
- Press the Draft Shape2DView button.
- Select the Modification → Shape 2D view option from the menu.
- If you have not yet selected an object: select an object in the 3D view.
- The projected objects are created on the XY plane.
How to produce plans and sections with different linewidths
Drawings with different linewidths for viewed and cut lines can easily be produced by using two shape2Dview objects from a same Arch SectionPlane. One of the shape2Dview objects has its projection mode set to Solid, which renders the viewed lines, and another set to Cut lines or Cut faces to render the cut lines. The two shape2Dviews are then placed at the same location, one on top of the other.
Properties
See also: Property editor.
A Draft Shape2DView object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Data
Draft
- DANEAuto Update (
Bool
): specifies if the projection should be automatically recomputed if the DANEBase object changes. Selectingfalse
can be useful if there are many Draft Shape2DViews in a document or if they are complex. If set tofalse
the Std Refresh command must be used to update the projection. introduced in version 0.20 - DANEBase (
Link
): specifies the object to be projected. - DANEFace Numbers (
IntegerList
): specifies the indices of the faces to be projected. Only works if DANEProjection Mode isIndividual Faces
. - DANEFuse Arch (
Bool
): specifies if Arch objects of the same type and material are fused or not. - DANEHidden Lines (
Bool
): specifies if hidden lines are shown or not. - DANEIn Place (
Bool
): only works if the selected object is an Arch SectionPlane, and DANEProjection Mode isCutlines
orCutfaces
, specifies if the projection will appear co-planar with the section plane. - DANEProjection (
Vector
): specifies the direction of the projection. Ignored if DANEBase is an Arch SectionPlane. - DANEProjection Mode (
Enumeration
): specifies the projection mode. The following modes are available:Solid
: projects the entire selected object.Individual Faces
: only projects the faces in the DANEFace Numbers list.Cutlines
: only works if the selected object is an Arch SectionPlane, projects only the edges cut by the section plane.Cutfaces
: only works if the selected object is an Arch SectionPlane, projects the areas cut through solids by the section plane as faces.Solid faces
: projects the entire selected object by cutting faces one by one. Can be used if theSolid
mode gives wrong results. introduced in version 0.20
- DANESegment Length (
Float
): specifies the size in millimeters of linear segments if DANETessellation istrue
. - DANETessellation (
Bool
): specifies if tessellation should be performed. Tessellation means that curves are replaced by sequences of line segments. This can be computationally intensive if the DANESegment Length is too short. - DANEVisible Only (
Bool
): specifies if the projection should only be recomputed if it is visible. - DANEExclusion Points (
Vector list
): A list of exclusion points. Any edge passing through any of those points will not be drawn. introduced in version 0.20
View
Draft
- WIDOKPattern (
Enumeration
): not used. - WIDOKPattern Size (
Float
): not used.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a 2D projection use the make_shape2dview
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeShape2DView
method.
shape2dview = make_shape2dview(baseobj, projectionVector=None, facenumbers=[])
baseobj
is the object to be projected.projectionVector
is the projection vector. If not supplied the Z axis is used.facenumbers
is a list of face numbers (0-based). If supplied only these faces are considered.shape2dview
is returned with the created 2D projection.
Change the ProjectionMode
property of the created object if required. It can be: "Solid"
, "Individual Faces"
, "Cutlines"
, "Cutfaces"
or "Solid faces"
.
Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
box = doc.addObject("Part::Box", "Box")
box.Length = 2300
box.Width = 500
box.Height = 1000
shape1 = Draft.make_shape2dview(box)
shape2 = Draft.make_shape2dview(box, App.Vector(1, -1, 1))
shape3 = Draft.make_shape2dview(box, App.Vector(-1, 1, 1), [0, 5])
shape3.ProjectionMode = "Individual Faces"
doc.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, Złożenie, BIM, 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