高手救救我!
<p>下面的程序已可以帮我把块中自定义的属性 值显示出来,问题是如何把它循环出来的值 逐一附给变量? </p><p>我主要是要实现,在DCL框里可以显示,修改值,望高手指点。。。</p><p></p><p>;显示图块属性<br/>(DEFUN C:PRTATTRIB ()<br/> ;(SETVAR "CMDECHO" 1)<br/> (IF (AND (PRINC "<a href="file://\\nSelect">\\nSelect</a> Block with attribute 选择带属性图块 :")<br/> (SETQ SS (SSGET '((0 . "INSERT") (66 . 1))))) <br/> <br/> (PROGN<br/> (SETQ I -1)<br/> (REPEAT (SSLENGTH SS)<br/> (SETQ ENT (ENTGET (SSNAME SS (SETQ I (1+ I))))<br/> ENT1 ENT)<br/> (WHILE (= (CDR (ASSOC 0 (SETQ ENT1 (ENTGET (ENTNEXT (CDR (ASSOC -1 ENT1))))))) "ATTRIB")<br/> (WRITE-LINE (CDR (ASSOC 1 ENT1)))<br/> )<br/> (PRINC "<a href="file://\\n">\\n</a>")<br/> )<br/> ))<br/> ;(SETVAR "CMDECHO" 1)<br/> (PRINC)<br/>)<br/></p>
页:
[1]