- (defun c:dj ()
- (setq i 0)
- (setq pline (car (entsel)))
- (setq ent (entget pline))
- (setq pts nil)
- (repeat (length ent)
- (if (= (car (nth i ent)) 10)
- ;(setq pts (append pts (list (cdr (nth i ent)))))
- (setq p0 (cdr (nth i ent)))
- (ins)
- )
- (setq i (1+ i))
- )
- (entdel pline)
- (princ)
- )
- (defun ins ()
- ;(setq p1 (getpoint "\n梁内边左下端点为起点: "))
- (COMMAND "-insert" "点筋" p0 "1" "1" "0" )
- (princ)
- )
上面是我自己拼的多义线顶点插入块(自己做一个点筋的块)的程序,结合批量偏移命令,将就可以快速布置角筋了。目前还没实现批量点筋。
|