怎么添加属性子列表,急!
<p>选择对象: ((-1 . <图元名: 7ef8ad90>) (0 . "LINE") (330 . <图元名: 7ef8ad18>) (5 <br/>. "32") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0")<strong><font color="#ee3d11">(62 . 3)</font></strong> (100 . <br/>"AcDbLine") (10 296.263 84.3673 0.0) (11 344.105 91.8686 0.0) (210 0.0 0.0 1.0))<br/><br/><br/>选择对象: ((-1 . <图元名: 7ef8ad88>) (0 . "LINE") (330 . <图元名: 7ef8ad18>) (5 <br/>. "31") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . <br/>"AcDbLine") (10 294.335 104.015 0.0) (11 342.177 111.517 0.0) (210 0.0 0.0 1.0))</p><p>请问如果属性列表里没有我要的那个子列表,怎么编写LISP添加进去啊,并成功更新,如上面的(62.3)是表示颜色的子列表,下面的那个颜色是随层,并没有这个子列表,怎么添加进去啊,谢谢了</p> ;;;**********************************<br/>;;; No.7-1 替换对象指定DXF码的内容 <br/>;;;**********************************<br/>(defun ayEntMod1 (entName1 DXFcode newValue / cc)<br/> (if (setq cc (assoc DXFcode (entget entName1)))<br/> (entmod (subst (cons DXFcode newValue) (assoc DXFcode (entget entName1)) (entget entName1)));then<br/> (entmod (append (entget entName1) (list (cons DXFcode newValue))));else<br/> );end_if<br/> (entupd entName1)<br/>);end_defun<br/>;例如 (ayEntMod1 (cdr (entsel)) 62 3)
页:
[1]