Jump to content

Recommended Posts

Posted

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.

DIM.jpg

Posted

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))

Posted

Perfect!

It works very well.

Thanks very much Tharwat!

Posted
Perfect!

It works very well.

Thanks very much Tharwat!

 

You're welcome .

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...