本帖最后由 sharetow 于 2019-12-20 16:20 编辑
可以运行啊,不过你这函数好像不是标准写法吧
- (defun c:tt()
- (setq
- a (getpoint "\n请选择参照点:")
- b 1
- )
- (XD:nt:Mark a b)
- )
- (defun XD:nt:Mark (p col / p1 p2 p3 p4)
- (grvecs
- (list col
- (polar p (/ pi 4) (* (getvar "viewsize") 0.05))
- (polar p (* pi 1.25) (* (getvar "viewsize") 0.05))
- col
- (polar p (* pi 0.75) (* (getvar "viewsize") 0.05))
- (polar p (* pi -0.25) (* (getvar "viewsize") 0.05))
- col
- (setq p1 (polar p (* pi 0.75) (* (getvar "viewsize") 0.025)))
- (setq p2 (polar p (/ pi 4) (* (getvar "viewsize") 0.025)))
- col
- p2
- (setq p3 (polar p (* pi -0.25) (* (getvar "viewsize") 0.025)))
- col
- p3
- (setq p4 (polar p (* pi 1.25) (* (getvar "viewsize") 0.025)))
- col
- p4
- p1
- )
- )
- t
- )
|