Getting started/zh: Difference between revisions

From FreeCAD Documentation
(Created page with "预设的视图(顶视图、前视图等),可以通过试图菜单、视图工具栏和数字快捷键({{KEY|1}}, {{KEY|2}}, 等等)进行使用。通过右键单击对象...")
(Created page with "==和FreeCAD一起迈进的第一步==")
Line 85: Line 85:
预设的视图(顶视图、前视图等),可以通过试图菜单、视图工具栏和数字快捷键({{KEY|1}}, {{KEY|2}}, 等等)进行使用。通过右键单击对象或三维视图的空白区域,可以快速使用一些常见操作,例如设置特定视图或在树视图中定位对象。
预设的视图(顶视图、前视图等),可以通过试图菜单、视图工具栏和数字快捷键({{KEY|1}}, {{KEY|2}}, 等等)进行使用。通过右键单击对象或三维视图的空白区域,可以快速使用一些常见操作,例如设置特定视图或在树视图中定位对象。


==First steps with FreeCAD==
==FreeCAD一起迈进的第一步==


FreeCAD's focus is to allow you to make high-precision 3D models, to keep tight control over those models (being able to go back into modelling history and change parameters), and eventually to build those models (via 3D printing, CNC machining or even construction worksite). It is therefore very different from some other 3D applications made for other purposes, such as animation film or gaming. Its learning curve can be steep, especially if this is your first contact with 3D modeling. If you are struck at some point, don't forget that the friendly community of users on the [http://forum.freecadweb.org/index.php FreeCAD forum] might be able to get you out in no time.
FreeCAD's focus is to allow you to make high-precision 3D models, to keep tight control over those models (being able to go back into modelling history and change parameters), and eventually to build those models (via 3D printing, CNC machining or even construction worksite). It is therefore very different from some other 3D applications made for other purposes, such as animation film or gaming. Its learning curve can be steep, especially if this is your first contact with 3D modeling. If you are struck at some point, don't forget that the friendly community of users on the [http://forum.freecadweb.org/index.php FreeCAD forum] might be able to get you out in no time.

Revision as of 11:45, 17 February 2019


新特性

前言

FreeCAD是一种3D CAD/CAE参数化建模程序.它主要用于机械设计但是同样可以用于其他需要精确建模3D对象以及控制建模记录的设计工作。

到目前为止,FreeCAD已经处于开发状态有些时日了,它为你提供很多设计功能。 和商业解决方案相比较,它仍有一些功能缺失,而且可能不足以用于许多生产环境,但对于多数业余爱好者和许多小型工厂来说它足够强大。这里有一个快速增长的热心用户社区,他们都加入了FreeCAD论坛,同时你也能够在论坛里找到许多在开发过程中使用FreeCAD的高品质项目案例

像所有开源项目,FreeCAD项目不是一个开发人员向你传递结果的一个单向工作,它更多依靠它的社区的成长、获得新的功能以及使其变得稳定(缺陷修正)。所以在使用FreeCAD的时候不要忘记,如果你愿意,你可以直接影响并且帮助FreeCAD!

安装

首先,下载并安装FreeCAD。参见下载页面获取更多当前版本信息以及更新信息,并在安装页面查看安装指导。FreeCAD支持Windows(.msi),Debian和Ubuntu (.deb), openSUSE (.rpm)以及Mac OSX环境,也可以通过许多Linux发行版的安装包管理器获取并安装,同时还有可以在最新64位Linux系统上运行的独立AppImage可执行文件。因为FreeCAD是开源软件,你也可以获取源代码并且自己对其进行编译

探索FreeCAD

File:Freecad-interface.jpg


  1. 3D视图,显示你的文档
  2. 树状视图, 显示你的文档中所有对象的层次结构记录。
  3. 属性编辑器,允许你浏览和修改选定对象的属性
  4. 报告视图(或者输出视图),FreeCAD打印信息、警告和错误的地方
  5. Python控制台,所有FreeCAD执行的命令将在这里打印出来,你也可以在这里输入和执行Python代码
  6. 工作台选择器, 用于选择并激活不同的工作台。


FreeCAD界面背后的主要概念是它被分成 工作台.一个工作台是一批适用于特定任务的工具的集合,比如使用网格、绘制2D对象带约束的草图. 你可以通过工作台选择器(6)切换当前工作台.你可以定制在每个工作台中包含的工具、添加其他工作台的工具甚至自己创建工具(我们称之为宏命令)。被广泛使用的设计工作起始点是零件设计工作台零件工作台.

当你启动FreeCAD的时候,你将会看到启动中心。下面你看到的是0.16版的启动中心:


FreeCAD 0.17版见启动中心截屏.

启动中心使你可以快速跳转到常用的工作台,打开最近编辑过的文件或者查看来自FreeCAD世界最近的新闻。你可以在FreeCAD主程序的参考中按照自己的需要改变启动中心的默认工作台。

在3D设计空间中的操作

FreeCAD有许多不同的鼠标操控模式可用, 选择不同的操控模式会改变你使用鼠标操控3D视图中对象和改变3D视图方式。操控模式有一个是特别为触控板设计的触控板, 该模式下鼠标中键不可用. 下列表格中描述了默认操控模式,叫做CAD操作 (你可以通过在3D视图的空白处右键单击跳出的菜单中进行选择以迅速改变当前操控:


选择 移动 缩放 旋转视图
第一种方法
旋转视图
其他方法
选择单个对象:在你想要选取的目标上点击鼠标左键。

选择多个对象:按住键盘上的Ctrl的同时逐个在你需要选取的对象的上点击鼠标左键。

按住鼠标中键,然后移动光标. 使用鼠标滚轮进行缩放操作.

单击鼠标中键可将视图重新置于光标位置的中心。

按住鼠标中键不放, 然后按下鼠标左键不放, 然后移动光标.

鼠标中键按下时光标的位置决定了旋转操作的旋转中心。旋转操作就像旋转一个围绕中心旋转的球。如果在停止鼠标移动之前释放按钮,视图将继续旋转(此选项启用时)。

双击鼠标中键以设定一个新的旋转中心。

按住鼠标中键不放, 然后按下鼠标右键不放, 然后移动光标.

该方法下鼠标中键可以在鼠标右键按下后放开。 习惯用右手的用户可能会觉得这种方法比第一种方法要容易些。

Ctrl+ Ctrl+Shift+ Shift+
移动模式:按住键盘上的Ctrl不放,点击鼠标右键一次后移动光标. introduced in version 0.17 Zoom mode: 按住键盘上的CtrlShift键不放, 点击鼠标右键一次后移动光标. introduced in version 0.17 Rotate mode: 按住Shift键不放,点击鼠标右键一次后移动光标. introduced in version 0.17


预设的视图(顶视图、前视图等),可以通过试图菜单、视图工具栏和数字快捷键(1, 2, 等等)进行使用。通过右键单击对象或三维视图的空白区域,可以快速使用一些常见操作,例如设置特定视图或在树视图中定位对象。

和FreeCAD一起迈进的第一步

FreeCAD's focus is to allow you to make high-precision 3D models, to keep tight control over those models (being able to go back into modelling history and change parameters), and eventually to build those models (via 3D printing, CNC machining or even construction worksite). It is therefore very different from some other 3D applications made for other purposes, such as animation film or gaming. Its learning curve can be steep, especially if this is your first contact with 3D modeling. If you are struck at some point, don't forget that the friendly community of users on the FreeCAD forum might be able to get you out in no time.

The workbench you will start using in FreeCAD depends on the type of job you need to do: If you are going to work on mechanical models, or more generally any small-scale objects, you'll probably want to try the PartDesign Workbench. If you will work in 2D, then switch to the Draft Workbench, or the Sketcher Workbench if you need constraints. If you want to do BIM, launch the Arch Workbench. If you are working with ship design, there is a special Ship Workbench for you. And if you come from the OpenSCAD world, try the OpenSCAD Workbench.

You can switch workbenches at any time, and also customize your favorite workbench to add tools from other workbenches.

Working with the PartDesign and Sketcher workbenches

The PartDesign Workbench is specially made to build complex objects, starting from simple shapes, and adding or removing pieces (that we call "features"), until you get to your final object. All the features you applied during the modelling process are stored in a separate view called the tree view, which also contains the other objects in your document. You can think of a PartDesign object as a succession of operations, each one applied to the result of the preceding one, forming one big chain. In the tree view, you see your final object, but you can expand it and retrieve all preceding states, and change any of their parameter, which automatically updates the final object.

The PartDesign workbench makes heavy use of another workbench, the Sketcher Workbench. The sketcher allows you to draw 2D shapes, which are defined by applying Constraints to the 2D shape. For example, you might draw a rectangle and set the size of a side by applying a length constraint to one of the sides. That side then cannot be resized anymore (unless the constraint is changed).

Those 2D shapes made with the sketcher are used a lot in the PartDesign workbench, for example to create 3D volumes, or to draw areas on the faces of your object that will then be hollowed from its main volume. This is a typical PartDesign workflow:

  1. Create a new sketch
  2. Draw a closed shape (make sure all points are joined)
  3. Close the sketch
  4. Expand the sketch into a 3D solid by using the pad tool
  5. Select one face of the solid
  6. Create a second sketch (this time it will be drawn on the selected face)
  7. Draw a closed shape
  8. Close the sketch
  9. Create a pocket from the second sketch, on the first object

Which gives you an object like this:

At any moment, you can select the original sketches and modify them, or change the extrusion parameters of the pad or pocket operations, which will update the final object.

Working with the Draft and Arch workbenches

The Draft Workbench and Arch Workbench behave a bit differently than the other workbenches above, although they follow the same rules, which are common to all of FreeCAD. In short, while the Sketcher and PartDesign are made primarily to design single pieces, Draft and Arch are made to ease your work when working with several, simpler objects.

The Draft Workbench offers you 2D tools somewhat similar to what you can find in traditional 2D CAD applications such as AutoCAD. However, 2D drafting being far away from the scope of FreeCAD, don't expect to find there the full array of tools that these dedicated applications offer. Most of the Draft tools work not only in a 2D plane but also in the full 3D space, and benefit from special helper systems such as Work planes and object snapping.

The Arch Workbench adds BIM tools to FreeCAD, allowing you to build architectural models with parametric objects. The Arch workbench relies extensively on other modules such as Draft and Sketcher. All the Draft tools are also present in the Arch workbench, and most Arch tools make use of the Draft helper systems.

A typical workflow with Arch and Draft workbenches might be:

  1. Draw a couple of lines with the Draft Line tool
  2. Select each line and press the Wall tool to build a wall on each of them
  3. Join the walls by selecting them and pressing the Arch Add tool
  4. Create a floor object, and move your walls in it from the Tree view
  5. Create a building object, and move your floor in it from the Tree view
  6. Create a window by clicking the Window tool, select a preset in its panel, then click on a face of a wall
  7. Add dimensions by first setting the working plane if necessary, then using the Draft Dimension tool

Which will give you this:

More on the Tutorials page.

Scripting

And finally, one of the most powerful features of FreeCAD is the scripting environment. From the integrated python console (or from any other external Python script), you can gain access to almost any part of FreeCAD, create or modify geometry, modify the representation of those objects in the 3D scene or access and modify the FreeCAD interface. Python scripting can also be used in macros, which provide an easy method to create custom commands.


Install on Mac/zh
Mouse Model/zh