这是我做了很长时间的尝试,但为了使其获得正确的方向,我使用了带有(entlast)函数的Rotate命令。
所以现在我期待着在编码方面变得更好,特别是在*Polyine entmakes的函数方面,它的代码太多了,这让我感到紧张。
- (setq arc1 (getdist "\n Radious of small Elbow: "))
- (setq line1(getdist "\n Width of Elbow: "))
- (setq pt1 (getpoint "\n Insertion Point of Elbow: "))
- (setq pt2 (list (- (car pt1) arc1)(+ (cadr pt1) arc1)))
- (setq pt3 (list (car pt2) (+ (cadr pt2) line1)))
- (setq pt4 (list (+ (car pt1) line1)(cadr pt1)))
- (command "_.pline" pt1 "width" 0 0 "arc" "angle" 90 pt1 pt2 "line" pt3 "arc" "angle" -90 pt4 "line" pt1 "")
我在日常工作中经常使用这些脚本,但使用entmake制作这些脚本将为我打开一扇通向焊工的大门。
希望你能帮我。
非常感谢。 |