Środowisko pracy Rysunek Roboczy
Moduł szkicu (draft) jest w czasie tworzenie i jest dość eksperymentalnym modułem stworzonym by dodać bazową funkcjonalność rysunku 2D do FreeCADa. Napisano go w pythonie - przeznaczony jest także do ukazania jak bardzo można rozwinąć FreeCADa w samym pythonie, bez dotykania kodu źródłowego.
Drawing objects
These are tools for creating objects.
Line: Draws a line segment between 2 points
Wire: Draws a line made of multiple line segments (polyline)
Circle: Draws a circle from center and radius
Arc: Draws an arc segment from center, radius, start angle and end angle
Ellipse: Draws an ellipse from two corner points
Polygon: Draws a regular polygon from a center and a radius
Rectangle: Draws a rectangle from 2 opposite points
Text: Draws a multi-line text annotation
Dimension: Draws a dimension annotation
BSpline: Draws a B-Spline from a series of points
Point: Inserts a point object
ShapeString: The ShapeString tool inserts a compound shape representing a text string at a given point in the current document
Facebinder: Creates a new object from selected faces on existing objects
Bezier Curve: Draws a Bezier curve from a series of points
Label: Places a label with an arrow pointing to a selected element introduced in version 0.17
Modifying objects
These are tools for modifying existing objects. They work on selected objects, but if no object is selected, you will be invited to select one.
Move: Moves object(s) from one location to another
Rotate: Rotates object(s) from a start angle to an end angle
Offset: Moves segments of an object about a certain distance
Trim/Extend (Trimex): Trims or extends an object
Upgrade: Joins objects into a higher-level object
Downgrade: Explodes objects into lower-level objects
Scale: Scales selected object(s) around a base point
Drawing: Writes selected objects to a Drawing sheet
Edit: Edits a selected object
Wire to BSpline: Converts a wire to a BSpline and vice-versa
Add point: Adds a point to a wire or BSpline
Delete point: Deletes a point from a wire or BSpline
Shape 2D View: Creates a 2D object which is a flattened 2D view of another 3D object
Draft to Sketch: Converts a Draft object to Sketch and vice-versa
Array: Creates a polar or rectangular array from selected objects
Path Array: Creates an array of objects by placing the copies along a path
Clone: Clones the selected objects
Mirror: Mirrors the selected objects
Stretch: Stretches the selected objects introduced in version 0.17
Utility tools
Additional tools available via right-click context menu, depending on the selected objects.
Set working plane: Sets a working plane from a standard view or a selected face
Finish line: Ends the drawing of the current wire or bspline, without closing it
Close line: Ends the drawing of the current wire or bspline, and closes it
Undo line: Undoes the last segment of a line
Toggle construction mode: Toggles the Draft construction mode on/off
Toggle continue mode: Toggles the Draft continue mode on/off
- File:Draft ApplyStyle.png Apply style: Applies the current style and color to selected objects
Toggle display mode: Switches the display mode of selected objects between "flat lines" and "wireframe"
Add to group: Quickly adds selected objects to an existing group
Select group contents: Selects the contents of a selected group
- File:Draft ToggleSnap.png Toggle snap: Toggles object snapping on/off
- File:Draft ToggleGrid.png Toggle grid: Toggles the grid on/off
- File:Draft ShowSnapBar.png Show snap bar: Shows/hides the snapping toolbar
Heal: Heals problematic Draft objects found in very old files
Flip Dimension: Flips the orientation of the text of a dimension
- File:Draft VisGroup.png VisGroup: Creates a VisGroup in the current document
- File:Draft Slope.png Slope: Changes the slope of selected Lines or Wires introduced in version 0.17
AutoGroup: Automatically place new objects in a given group introduced in version 0.17
- File:Draft SetWorkingPlaneProxy.png Set Working Plane Proxy: Add a proxy object in the document to store a Working Plane position introduced in version 0.17
Add to Construction group: Add selected objects to the Construction group introduced in version 0.17
Preferences
Preferences...: Preferences disposable in Draft Tools.
Importowanie i eksportowanie
Obecne są funkcję otwierające, importujące lub eksportujące inne formaty plików. Otwarcie następuje w nowym dokumencie z zawartością pliku, podczas gdy import załącza zawartość pliku do aktualnego dokumentu. Eksport zapisuje do pliku wybrane obiekty. Jeśli niczego nie zaznaczono wszystkie obiekty zastaną wyeksportowane. Bądź świadom, że moduł Szkicu (Draft) jest przeznaczony do pracy z obiektami 2d i jego importery skupiają się tylko na obiektach 2d i, pomimo że formaty DXF i OCA wspierają definicje obiektów w przestrzeni 3d, nie pozwalają one na import objętościowych obiektów jak siatki, powierzchnie 3D itp., tylko importują linie, okręgi, teksty lub płaskie kształty. Obecnie wspierane formaty plików:
Preference ... Import Export
- Autodesk .DXF: Importuje i eksportuje pliki DXF stworzone w innych aplikacjach
- SVG (jako geometria): Importuje i eksportuje pliki SVG stworzone w aplikacjach do grafiki wektorowej
- format Open Cad .OCA: Importuje i eksportuje pliki OCA/GCAD potencjalnie nowego otwartego formatu CAD
Zwykłe zachowanie
- Przyciąganie (Snapping): Pozwala umieszczać nowe punkty na specjalnych miejscach istniejących obiektów
- Ograniczanie (Constraining): Pozwala na umieszczenie nowych punktów poziomo lub pionowo w odniesieniu do poprzednich
- Praca z ręcznymi współrzędnymi: Pozwala wprowadzić współrzędne manualnie zamiast klikanie na ekranie
- Kopiowanie (Copying): Wszystkie narzędzia modyfikacji mogą też modyfikować lub tworzyć zmodyfikowane kopie zaznaczonych obiektów. Podczas użycia narzędzia naciśnij ALT by stworzyć kopię.
- Tryb konstrukcji (Construction): Pozwala wstawić geometrię niezależnie od reszty dla łatwego włączenia/wyłączenia
- Wszystkie nowo stworzone obiekty przyjmują kolor i szerokość aktualnego Szkicu (Draft)
API
Zajrzyj do strony API Szkicu by uzyskać kompletny opis funkcji Szkicu których możesz użyć w skryptach i makrach.