shmily1023 发表于 2005-2-22 23:05:00

[求助]如何查询点的属性?

如何查询某一点的属性?例如:点所在的图层/点名/坐标/扩展属性等等

东哥 发表于 2005-2-23 08:07:00

点还要有“名”和扩展属性?那只能是把点做成“块”再用了。

CADghost 发表于 2005-2-23 10:04:00

(DEFUN C:123 ()<BR>       (princ "\choose a point")<BR>       (SETQ r_EN (SSGET))<BR>       (setq entlst (ssname r_en 0))<BR>       (setq r_gauge (entget entlst))       <BR>)

CADghost 发表于 2005-2-23 10:05:00

<TABLE class=BasicRight cellSpacing=0 rules=cols>
<TBODY>
<TR class=row_0>
<TH class=BasicRight_CELL colSpan=2>
<P class=table_title>属性组码

</TH></TR>
<TR class=row_0>
<TH class=BasicRight_CELL>
<P class=table_heading>组码

</TH>
<TH class=BasicRight_CELL>
<P class=table_heading>说明

</TH></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>100

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>子类标记 (AcDbText)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>39

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>厚度(可选;默认值 = 0)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>10

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字起点(在 OCS 中)<BR>DXF™:X 值;APP:三维点

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>20, 30

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>DXF:文字起点的 Y 值和 Z 值(在 OCS 中)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>40

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字高度

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>1

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>默认值(字符串)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>100

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>子类标记 (AcDbAttribute)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>2

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>属性标记(字符串)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>70

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>属性标记:<BR>1 = 属性不可见(不出现)<BR>2 = 固定属性<BR>4 = 输入属性时要求进行验证<BR>8 = 属性为预置(插入时无提示)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>73

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>字段长度(可选;默认值 = 0)(当前未使用)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>50

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字旋转角度(可选;默认值 = 0)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>41

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>X 相对缩放比例(宽度)(可选;默认值 = 1)。使用拟合类型的文字时,该值也将进行调整

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>51

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>倾斜角(可选;默认值 = 0)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>7

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字样式名(可选;默认值 = 标准)

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>71

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字生成标志(可选;默认值 = 0)。参见 <A title=TEXT href="mk:@MSITStore:D:\AutoCAD%202004\help\acad_dxf.chm::/dxf_0641.html#895924" target="_blank" >TEXT</A> 组码

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>72

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字水平对正类型(可选;默认值 = 0)。参见 <A title=TEXT href="mk:@MSITStore:D:\AutoCAD%202004\help\acad_dxf.chm::/dxf_0641.html#895924" target="_blank" >TEXT</A> 组码

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>74

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>文字垂直对正类型(可选;默认值 = 0)。参见 <A title=TEXT href="mk:@MSITStore:D:\AutoCAD%202004\help\acad_dxf.chm::/dxf_0641.html#895924" target="_blank" >TEXT</A> 中的组码 73

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>11

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>对齐点(在 OCS 中)(可选)<BR>DXF:X 值;APP:三维点<BR>只有当 72 或 74 组出现且非零时才出现

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>21, 31

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>DXF:对齐点的 Y 值和 Z 值(在 OCS 中)(可选)

</TD></TR>
<TR class=row_1>
<TD class=BasicRight_CELL>
<P class=table_body>210

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>拉伸方向。仅当图元的拉伸方向与 WCS 的 Z 轴不平行时才出现(可选;默认值 = 0, 0, 1)<BR>DXF:X 值;APP:三维矢量

</TD></TR>
<TR class=row_2>
<TD class=BasicRight_CELL>
<P class=table_body>220, 230

</TD>
<TD class=BasicRight_CELL>
<P class=table_body>DXF:拉伸方向的 Y 值和 Z 值(可选)

</TD></TR></TBODY></TABLE>

shmily1023 发表于 2005-2-23 11:25:00

谢谢青蜂侠
页: [1]
查看完整版本: [求助]如何查询点的属性?