由于我对autolisp完全陌生,所以我无法理解这个帖子(但我在其他语言中也有Expirence)
我遇到了这个代码,但我几乎不懂
我用问题添加评论
- (defun c:test (/ n ss p e); 1. what the switch / means?
- (if
- (and (setq n (getdist "\n Specify the Offset Distance
- :"));2.what the use of "and"
- here?
- (setq
- ss (ssget
- "_+.:S:L" '((0 . "*POLYLINE,*LINE,CIRCLE,ELLIPSE")));3. select all
- polys,line,circle,elipse andd put them in ss
- variable?
- )
- (setq p (getpoint "\n
- Specify point :"))
- )
- (progn
- (command "_.offset" n ss "_non" p
- "");4.offset all shapes?
- (setq e
- (entlast))
- (if (tblsearch "LAYER"
- "cover");.5???
- (command
- "_.chprop" e "" "_layer" "cover"
- "");.6???
- )
- )
- (princ)
- )
- (princ)
- )
谢谢
S |