对不起,我会试着用英语翻译。
- (prompt "Type CHKD for running program!")
- (defun c:chkd (/ cd DimSel Pengulangan cnt Sdat EntDat DimGan )
- (setq DimSel (ssget "_X" (list (cons 0 "Dimension")))); Selection set for Dimension
- (setq Pengulangan (sslength DimSel)); calculating the selected object
- (Setq cnt -1); Counter
- (setq cd (ssadd))
- ;----------
- (repeat Pengulangan
- (setq cnt (1+ cnt))
- (setq Sdat (ssname DimSel cnt)); Get Ename
- (setq EntDat (entget Sdat))
- (setq DimGan (cdr(assoc 1 EntDat))); Searching Override Dimension
- (if (/= DimGan "")
- (ssadd Sdat cd )
- ); if
- ); repeat
- (command "select" cd)
- (princ)
- );defun
- (princ)
我来自印度尼西亚,所以有时我会使用巴哈萨语来创建简单的代码。
当做
非洲RI |