只需一步,快速开始
(defun c:x2() (setq name (getvar "CLAYER")) (setq zz (getstring "请输入文字值(string): ")) (while (setq pt (getpoint "\n指定文字位置: ")) (setq p1 (polar (polar (list 0 0) (angtof "180") 85) (angtof "90") 30)) (setq p2 (polar (polar (list 0 0) (angtof "0") 85) (angtof "90") 30)) (setq p3 (polar (polar (list 0 0) (angtof "0") 85) (angtof "270") 30)) (setq p4 (polar (polar (list 0 0) (angtof "180") 85) (angtof "270") 30)) (entmake (list '(0 . "BLOCK") (cons 2 name) '(10 0 0 0) '(70 . 0))) (entmake (list '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(100 . "AcDbPolyline") '(90 . 4) '(70 . 1) (cons 10 p1) (cons 10 p2) (cons 10 p3) (cons 10 p4))) (entmake '((0 . "ENDBLK"))) (entmake (list '(0 . "INSERT") (cons 2 name) (cons 10 pt))) (entmake (list '(0 . "TEXT") (cons 1 zz) (cons 10 pt) (cons 11 pt) '(40 . 38) '(72 . 4))) ) )
我来回答
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-15 07:06 , Processed in 0.163882 second(s), 21 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.