嗨,你应该问lisp问题
AutoLISP论坛
- (defun c:test (/ en d p p2 tx1 tx2)
- (setvar 'dimasz 15)
- (while (setq en (car (entsel "\nPick polyline.. ")))
- (and (wcmatch (cdr(assoc 0 (entget en))) "*LINE")
- (setq d (vlax-curve-getdistatpoint en (vlax-curve-getendpoint en))
- p (vlax-curve-getpointatdist en (* d 0.5))
- tx1[color="purple"] "100MM %%C"[/color]
- tx2 (strcat "L=" (rtos d 2 0) "M")
- p2 (if (and pointer:marker msg:pointer) ([color="blue"]msg:pointer[/color] (list[color="red"] (trans p 0 1)[/color]) 1 (strcat tx1 "\\P" tx2))
- (getpoint p "\nSpecific next point.. "))
- )
-
- (vl-cmdf "_leader" "_non" [color="red"](trans p 0 1)[/color] "_non" p2 "" tx1 tx2 "")
- )
- )
- (princ)
- )
视觉效用
消息:指针
附言:@BIGAL我注意到你离线,而OP在线。我的快速回复并不是要劫持。 |