 - (defun extentline (ent extent / ang dxf pt0 pt01 pt1 pt11)
- (setq dxf (entget ent)
- pt0 (cdr (assoc '10 dxf))
- pt1 (cdr (assoc '11 dxf))
- ang (angle pt0 pt1)
- pt01 (polar pt0 (- ang pi) extent)
- pt11 (polar pt1 ang extent)
- dxf (subst (cons '10 pt01) (cons '10 pt0) dxf)
- dxf (subst (cons '11 pt11) (cons '11 pt1) dxf)
- )
- (entmod dxf)
- )
|