属性编辑器

From FreeCAD Documentation
Revision as of 09:10, 7 July 2019 by Wconly (talk | contribs) (Created page with "{{PropertyData|位置(Position)}} : 本属性指定了与目标对象所有维度有关的基点。此属性取3个参数,通过工具中的x、y、z输入框来传递...")
Interface Customization
Workbenches

概述

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

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

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

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

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

属性定义

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

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

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

布尔
浮点数
浮点数列表
浮点数约束
角度
距离
整数
整数约束
百分
列举
整数列表
字符串
字符串列表的
链接
链表
矩阵
向量
向量列表
布局
布局列表
颜色
颜色列表
材料
路径
文件
已被包含的文件
零件形状
圆角轮廓

零件对象属性的相关示例

属性

有两种功能属性类型,可通过属性编辑器下方的选项卡来访问:

视图View : 关于对象“视觉”显示方面上的各种属性。
数据Data : 关于对象“物理”参数的各种属性。

视图

基本信息

  • 视图包围盒(Bounding Box) : 指示是否显示对象的最小外接立方体值可为False, 或True (默认值为False)。
  • 视图控制点(Control Point) : 指示是否显示特征控制点。值可为False, 或True (默认值为False)。
  • 视图偏差(Deviation) : 设置3D视图中模型多边形表示法(polygonal representation)的精准度(曲面细分)。较小的数值 = 更高的渲染质量。此值按对象大小的百分比来计算(以mm表示的偏差 = (w+h+d)/3*valueInPercent/100, 其中w,h,d分别为包围盒的维度)。
  • 视图显示模式(Display Mode) :对象的显示模式,平直线(Flat lines), 着色(Shaded), 线框(Wireframe), 点(Points) 。 (默认值, 平直线)。
  • 视图光照(Lighting) : 光照单侧(One side), 两侧(Two side) . (默认值,两侧)。
  • 视图线段颜色(Line Color) : 指定线段(边)的颜色(默认值, 25, 25, 25)。
  • 视图线段宽度(Line Width) : 指定线段(边)的粗细(默认值, 2)。
  • 视图点的颜色(Point Color) : 指定点(端点)的颜色(默认值, 25, 25, 25)。
  • 视图点的大小(Point Size) : 指定点的大小(默认值, 2)。
  • 视图可选择性(Selectable) : 对象是否可以被选中。值为False或True (默认值, True)。
  • 视图几何形状的颜色(Shape Color) : 指定带有颜色的几何形状(默认值, 204, 204, 204)。
  • 视图透明度(Transparency) : 设置对象的透明度,取值范围为0 to 100 (默认值, 0)。
  • 视图可见性(Visibility) : 确定对象的可见性(如同SPACE键的效果)。取值为False或True (默认值, True)。


数据

基本信息


数据Placement : Summary of the data below. 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 Options Placement, a button with three small points appears to the right. Clicking this button ..., opens the Tasks_Placement options window.


数据Angle : Specifies the angle to be used with the axis property (below). 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.


数据Axis : This property specifies the axis/axes about which the feature is to be rotated. 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.


数据位置(Position) : 本属性指定了与目标对象所有维度有关的基点。此属性取3个参数,通过工具中的x、y、z输入框来传递对应数值。为一个以上的输入框设置同一值,将导致零件在对应坐标轴上按设置的数值移动相应数量的单位。


数据标签(Label) : 此标签是为目标对象(特征)指定的名称,此名可按需更改。


PS: 显示属性可能会有所区别,这取决于具体所用的工具。

Interface Customization/zh-cn
Workbenches/zh-cn