Atelier Draft
La Planche à dessin (ou atelier Draft) est un module expérimental en cours de développement conçu pour ajouter des fonctionnalités basiques de dessin en deux dimensions à FreeCAD. Il est entièrement programmé en python, et a également pour but de démontrer comment accroître les possibilités de FreeCAD entièrement en python, sans même toucher au code source.
Dessin d'objets
Les outils de création d'objets.
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.
Formats de fichiers
Les formats de fichiers reconnus à l'heure actuelle sont :
Preference ... Import Export
- Autodesk.DXF: Importe et exporte les fichiers DXF (Drawing eXchange Format) créés avec d'autres applications de CAO 2D
- SVG (come géometrie): Importe et exporte les fichiers Scalable Vector Graphics(SVG) créés avec des applications de dessin vectoriel
- Open Cad format .OCA: Importe et exporte les fichiers OCA/GCAD, un nouveau format de fichier CAO ouvert potentiel
- Airfoil Data Format .DAT: Importe les fichiers DAT décrivant des profils de surface portante
- Autodesk .DWG: Importe et exporte les fichiers DWG via DXF importer, avec l'utilitaire Teigha Converter à installer.
- FreeCAD and DWG Import: Importe et exporte les fichiers DWG.
- FreeCAD and DXF Import: Importe et exporte les fichiers DXf
Fonctions additionnelles
- Accrochage: Permet de place de nouveau points en des endroits spécifiques sur des objets existants
- Contraindre: Permet de placer des points horizontalement ou verticalement en relation aux points précédents
- Saisir des coordonnées manuelles: Permet de saisir des coordonnées manuellement plutôt que de cliquer à l'écran
- Plan de travail: permet de définir un plan dans l'espace tridimensionnel, où les prochaines opérations auront lieu.
Script
Consultez la page Draft API pour obtenir une description complète des fonctions que vous pouvez utiliser dans les scripts et les macros.