Hello!
Have somebody a idea, how I can create a program, which can draw a flag (line) from a block centrepoint to a variable pickpoint. But the line doesn´t draw throw the block.
The example works only with insertpoint of block. It would be nicer if the flag shows to middle of the block (se image)
(defun c:test ()
(if (and (setq obj (entsel "\n Select a block! "))
(if (member (cdr (assoc 0 (entget (car obj)))) '("INSERT"))
(setq blockpt (cdr (assoc 10 (entget (car obj)))))
)
(setq fpt (getpoint "\nPick a point "))
)
(entmake (list '(0 . "LINE") '(67 . 0) '(410 . "Model") (cons 8 (getvar "CLAYER")) (cons 10 blockpt) (cons 11 fpt)))
)
(princ)
)