Field 字段
字段是包含说明的文字,这些说明用于显示可能会在图形生命周期中修改的数据。
字段更新时,将显示最新的数据。例如,“文件名”字段的值就是文件的名称。如果该文件名修改,字段更新时将显示新的文件名。
字段可以插入到任意种类的文字(公差除外)中,其中包括表单元、属性和属性定义中的文字。激活任意文字命令后,将在快捷菜单上显示“插入字段”。
一些图纸集字段可以作为占位符插入。例如,可以将“图纸编号和标题”作为占位符插入。此后,将布局添加到图纸集时,此占位符字段将显示正确的图纸编号和标题。
在块编辑器中进行操作时,可以将块占位符字段用于块属性定义中。
没有值的字段将显示连字符 (----)。例如,在“图形特性”对话框中设置的“作者”字段可能为空。无效字段将显示井号 (####)。例如,“当前图纸名”字段仅在图纸空间中有效,将它放置到模型空间中则显示井号。
ActiveX 中相关的仅有
RetVal = object.FieldCode object Text, MText
The objects this method applies to. RetVal String; the field codes of the object.
Attrib 没有提供 FieldCode 方法
Lisp 要用 Dictsearch 绕一圈
ARX 要丰富多了
The properties of the Field class are listed below. For a complete list of Field class members, see theField Members topic.
Public Instance Properties
DataType | Gets the data type of the field evaluation result. | EvaluationOption | Gets or sets the evaluation option explicitly set in the field. | EvaluationStatus | Gets the evaluation status set by the evaluator. | EvaluatorId | Gets or sets the ID of the evaluator used by the field for evaluation.Gets or sets null if there is no evaluator set in the field, or if an evaluator could not be found and assigned to the field. | FilingOption | Gets or sets the filing option set in the field. | Format | Gets or sets the output format set in the field.Gets or sets a blank string if there is no output format set. | HyperLink | Gets or sets the hyperlink associated with the field. | IsTextField | Gets true if this field is a text field, which is text with embedded fields. | State | Gets the field state. | Value | Gets the field evaluation result as string after formatting the string using the format set in the field.Gets a blank string if the field is not yet evaluated. |
应用很多了,论坛上有过的面积统计的字段关联、动态块长度字段等等
|