我是amatuer,也许应该置身事外。但我想回复一个请求只是为了体验一下。
-
- (defun c:test ( / a b c wid)
- (setq a (getpoint "Pick head of arrow...\n")
- b (getpoint a "Pick tail of arrow...\n")
- c (polar a (angle a b) (/ (distance a b) 3.0))
- wid (/ (distance a b) 6.0)
- )
- (entmake
- (list '(0 . "LWPOLYLINE")'(100 . "AcDbEntity")'(8 . "0")'(62 . 0)'(6 . "ByBlock")'(100 . "AcDbPolyline")'(90 . 2)'(70 . 0)'(38 . 0.0)'(39 . 0.0)(cons 10 a)
- '(40 . 0.0)(cons 41 wid)'(42 . 0.0)(cons 10 c)'(40 . 0.0)'(41 . 0.0)'(42 . 0.0)'(210 0.0 0.0 1.0)))
- (entmake
- (list '(0 . "LINE")'(100 . "AcDbEntity")'(8 . "0")'(62 . 0)'(6 . "ByBlock")'(100 . "AcDbLine")(cons 10 c)(cons 11 b)'(210 0.0 0.0 1.0)))
- (princ)
- )
我通过创造最奇怪的解决方案来逗自己开心。事实上,别理我。很抱歉 |