marmo Posted March 7, 2014 Posted March 7, 2014 Hi, i would know if there is a code that allow to draw automatically a line between two points of each selected dimensions (aligned and rotated). Like in this picture. Thanks for the help. Quote
Tharwat Posted March 7, 2014 Posted March 7, 2014 Try this simple one . (defun c:Test (/ ss ) (if (setq ss (ssget '((0 . "DIMENSION")))) ((lambda (i / sn e) (while (setq sn (ssname ss (setq i (1+ i)))) (entmakex (list '(0 . "LINE") '(62 . 2) (cons 10 (cdr (assoc 13 (setq e (entget sn))))) (cons 11 (cdr (assoc 14 e))))) ) ) -1) ) (princ)) Quote
marmo Posted March 7, 2014 Author Posted March 7, 2014 Perfect! It works very well. Thanks very much Tharwat! Quote
Tharwat Posted March 7, 2014 Posted March 7, 2014 Perfect! It works very well. Thanks very much Tharwat! You're welcome . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.