Property editor/zh-cn

概述
属性编辑器是FreeCAD最重要的工具之一，也是FreeCAD使用的主要元素. 属性编辑器允许管理文档中对象的属性.

通常，属性编辑器一次只处理一个对象. 属性编辑器中显示的值属于活动文档的活动对象（如果您处理多个文档，请注意哪个文档是真正活动文档）. 如果您没有选择任何元素（或没有元素），则属性编辑器将为空.

并不是所有的属性都可以随时修改. 根据具体状态，某些属性将显示为只读.

对象的属性分组在“视图”属性和“数据”属性中，并显示在不同的选项卡下.

不同的对象可能有不同的属性. 然而，一些属性在所有对象中是常见的，例如对象的位置和旋转是可以被操纵的数据属性.

属性定义
一个属性是一条信息，如一个数字或文本字符串，附加到一个FreeCAD文档或文档中的一个对象. 可以使用属性编辑器修改属性，如果允许的话.

属性在FreeCAD中起着非常重要的作用，因为它是从一开始就使用参数化对象，这些对象是仅由属性定义的对象.

FreeCAD中的自定义脚本对象可以具有以下类型的属性：

属性
有两种功能属性类型，可通过属性编辑器下方的选项卡来访问：
 * : 关于对象“视觉”显示方面上的各种属性.
 * : 关于对象“物理”参数的各种属性.

视图



 * : Indicates if a box showing the overall extent of the object is to be displayed. Value False, or True (Default, False).
 * : Indicates if the feature control points are to be displayed. Value False, or True (Default, False).
 * : Sets the accuracy of the polygonal representation of the model in the 3d view (tessellation). Lower values = better quality. The value is in percent of object's size (deviation in mm = (w+h+d)/3*valueInPercent/100, where w,h,d are the bounding box dimensions).
 * :Display mode of the feature, Flat lines, Shaded, Wireframe, Points [[IMAGE:Vue_DisplayModePartDesign_fr_00.png|96px]]. (Default, Flat lines).
 * : Lighting One side, Two side [[IMAGE:Vue_Lighting_fr_00.png|96px]]. (Default, Two side).
 * : Gives the color of the line (edges) (Default, 25, 25, 25).
 * : Gives the thickness of the line (edges) (Default, 2).
 * : Gives the color of the points (ends of the feature) (Default, 25, 25, 25).
 * : Gives the size of the points (Default, 2).
 * : Allows selection of the feature. Value False, ou True (Default, True).
 * : Give the color shape (default, 204, 204, 204).
 * : Sets the degree of transparency in the feature of 0 to 100 (Default, 0).
 * : Determines the visibility of the feature (like the bar ). Value False, or True (Default, True).

Data


Every feature has a placement that can be controlled through the Data Properties table. It controls the placement of the part with respect to the coordinate system. NOTE: The placement properties do not affect the physical dimensions of the feature, but merely its position in space! If you select the title Placement, a button with appears to the right. Clicking this button, opens the Tasks_Placement options window.

An angle is set here, and the axis that the angle acts upon is set with the axis property. The feature is rotated by the specified angle, about the specified axis. A usage example might be if you created a revolution feature as required, but then needed to rotate the whole feature by some amount, in order to allow it to line-up with another pre-existing feature.

The exact value of rotation comes from the angle property (above). This property takes three arguments, which are passed as numbers in the x, y, and z boxes in the tool. Setting a value for more than one of the axes will cause the part to be rotated in each axis, by the angle value multiplied by the value for the axis. For example, with an angle of 15° set, specifying a value of 1.0 for x, and 2.0 for y will cause the finished part to be rotated 15° in the x-axis AND 30° in the y-axis.

This takes three arguments, which are passed as numbers to the x, y, and z boxes in the tool. Setting a value for more than one of the boxes will cause the part to be translated by the number of units along the corresponding axis.



PS: The displayed properties can vary, depending on the tool used.