本帖最后由 xyp1964 于 2018-5-17 22:23 编辑
zhouwanweihf 发表于 2014-6-15 09:42 
感谢你的回复,
我需要的是这样的:
 - (defun c:tt ()
- (xyp-CMDLA0)
- (setq i -1)
- (if (setq ss (ssget '((0 . "CIRCLE"))))
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq pt (xyp-DXF 10 s1)
- rr (/ (xyp-DXF 40 s1) 50.)
- )
- (command "ucs" "n" pt)
- (command "hatch" "螺旋纹理" rr (* (xyp-rand)1000) s1 "")
- (command "ucs" "")
- )
- )
- (xyp-CMDLA1)
- )
|