底图模块
简介
您可以利用底图工作台来绘制简单的2D对象,再利用其提供的其他工具来修改这些对象。此工作台提供了工具来定义工作平面、网格。另外,还有一个snapping系统可助您精确地控制几何体的位置。
用户创建的2D对象能以类似于Inkscape或Autocad中的方式用于通用绘图。这些2D图形也可用作零件工作台与建筑工作台等其他工作台所创3D对象的基本组件。另外,也可以将底图对象转换至草图工作台,这意味着能够在零件设计工作台中利用这些图形来创建实体。
FreeCAD是一款以3D建模为主的应用软件,这使它的2D工具并非如其他绘图程序那样高级。如果您的主要目的是复杂的2D绘图与处理DXF文件,并不是3D建模,那么不妨考虑一款关于技术制图的专用软件,例如LibreCAD, QCad, TurboCad以及其他类似程序。
绘制对象
下面来介绍一些用于创建对象的工具。
- 线段(Line): 绘制两点间的线段。
- 连线(Wire): 绘制一条由多条线段构成的折线(polyline)。
- 圆形(Circle): 根据中心点与半径来绘制一个圆形。
- 弧(Arc): 根据中心点、半径、起始角度与结束角度来绘制一条弧。
- 3点绘弧(Arc 3Points): 根据圆周上的3点来绘制一条弧线段。 introduced in version 0.19
- 椭圆形(Ellipse): 根据两个角点来绘制一个椭圆形。
- 多边形(Polygon): 根据中心点、半径与边数来绘制一个规则的多边形。
- 矩形(Rectangle): 根据两个角点来绘制一个多边形。
- 文本(Text): 绘制一个多行文本注解。
- 维度注解(Dimension): 绘制一个维度注解。
- B样条(BSpline): 根据一系列点来绘制一个B样条。
- 点(Point): 插入一个点对象。
- ShapeString: 在给定位置插入一个由复合图形构成的字符串。
- Facebinder: 根据已存在对象上所选定的面来创建一个新对象。
- 贝塞尔曲线(Bezier Curve): 根据一系列点来绘制一条贝塞尔曲线。
- 三次贝塞尔曲线(Cubic Bezier Curve): 通过拖动两个点来绘制一条三次贝塞尔曲线。introduced in version 0.19
- 标签(Label): 设置一个箭头指向选定元素的标签。 introduced in version 0.17
修改对象
以下这些工具用来修改已存在的对象。这写工具处理的是用户选定的对象,如果没有选择待处理对象,系统会提醒你选择一个。
许多工具(移动, 旋转, 阵列等)也可用于处理实体对象(零件, 零件设计, 建筑等)。
- 移动(Move): 将对象移动到另一个地方。
- 旋转(Rotate): 将对象从起始角度旋转到结束角度。
- 偏移(Offset): 将对象中的线段按特定距离进行偏移。
- Trim/Extend (Trimex): trims or extends an object.
- Join: joins lines together into a single wire. introduced in version 0.18
- Split: splits a wire into two at a point. introduced in version 0.18
- Upgrade: upgrades objects into a higher-level object.
- Downgrade: downgrades objects into lower-level objects.
- Scale: scales selected objects around a base point.
- Edit: edits a selected object.
- File:Draft Edit Improved.svg Edit Improved: enters an edit mode that allows editing different objects. introduced in version 0.19
- Wire to BSpline: converts a wire to a B-Spline and vice-versa.
- Add point: adds a point to a wire or B-Spline.
- Delete point: deletes a point from a wire or B-Spline.
- Shape 2D View: creates a 2D object which is a flattened 2D view of a 3D object.
- Draft to Sketch: converts a Draft object to a Sketcher Workbench 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.
- Point Array: creates an array of objects by placing the copies at certain points. introduced in version 0.18
- 克隆(Clone): 对选定的对象进行克隆操作。
- File:Draft PutOnSheet.svg 绘制(Drawing): 将选定的对象写入工程制图工作台页面。
- 镜像(Mirror): 对选定的对象进行镜像操作。
- 拉伸(Stretch): 拉伸选定的对象。introduced in version 0.17
实用工具
其他工具可从Draft → Utilities菜单处找到。或者右击当前的环境菜单(context menu),具体可用工具取决于当前所选对象。
- Set working plane: sets a working plane from a standard view or a selected face.
- Finish line: ends the drawing of the current Draft Wire or Draft BSpline, without closing it.
- Close line: ends the drawing of the current Draft Wire or Draft BSpline, and closes it.
- Undo line: undoes the last segment of a Draft Wire.
- Toggle construction mode: toggles the Draft construction mode on or off.
- Toggle continue mode: toggles the Draft continue mode on or off.
- 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 Std Group or Draft VisGroup.
- Select group contents: selects the contents of a selected Std Group or Draft VisGroup.
- File:Draft ToggleSnap.svg Toggle snap: toggles object snapping on or off.
- Toggle grid: toggles the visibility of the grid on or off.
- Show snap bar: shows or hides the Draft Snap toolbar.
- Heal: heals problematic Draft objects found in very old files.
- Flip Dimension: flips the orientation of the text of a Draft Dimension.
- VisGroup: creates a VisGroup in the current document. obsolete in version 0.19
- Layer: creates a Layer in the current document, to which objects can be added to control object visibility and color. It replaces VisGroup. introduced in version 0.19
- Slope: changes the elevation slope of the currently selected Draft Line or Draft Wire. introduced in version 0.17
- AutoGroup: automatically place new objects in a given Std Group or Draft VisGroup. introduced in version 0.17
- Set Working Plane Proxy: create a proxy object to store the current Working Plane position. introduced in version 0.17
- Add to Construction group: add selected objects to the Construction group. introduced in version 0.17
首选项
文件格式
底图模块为FreeCAD提供了下列格式文件的导出、导出服务:
- Autodesk .DXF: 导入或导出由2D CAD应用程序创建的图形交换文件。参见FreeCAD and DXF Import。
- Autodesk .DWG: 在ODA转换器安装完成后,通过DXF导入工具导入或导出DWG文件。参见FreeCAD and DWG Import。
- SVG: 导入或导出由矢量绘图应用程序创建的可伸缩矢量图形文件。
- Open Cad format .OCA: 导入或导出OCA/GCAD文件,这是一种潜在的新式开放CAD文件格式。
- Airfoil Data Format .DAT: 导入DAT文件,此格式详情可参见Airfoil profiles。
Install importers
- FreeCAD and DWG Import: Imports and exports DWG files
- FreeCAD and DXF Import: Imports and exports DXF files
其他功能
- 底图坐标(Coordinates): 利用输入坐标的方式取代点击3D视图来定义一个新的点。
- 底图约束(Constraining): 限制鼠标指针在相对于前一个点的水平方向或垂直方向上移动。
- 底图捕捉(Snapping): 将新添加的点定位于已存在对象上的特定位置或网格上。
脚本
有关教程
Draft
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub