Jump to content

Recommended Posts

Posted

Does anybody have some code that will swap the defpoints of linear dimensions so the text of short dimensions automatically pops out to the other side?

Posted
Does anybody have some code that will swap the defpoints of linear dimensions so the text of short dimensions automatically pops out to the other side?

 

Try these Q&D lisps

;;und.lsp
(defun C:UND (/ elist en ss)
(if
(setq ss (ssget (list (cons 0 "DIMENSION"))))
(while (setq en (ssname ss 0))
(setq elist (entget en))
(entmod (subst (cons 1 "[url="file://\\X<>")(assoc"]\\X<>")(assoc[/url] 1 elist) elist))
(entupd en)
 (ssdel en ss)
)
   )
 (princ)
)
(princ "\n   ***  Start command with UND to set dim text under line   ***")
(princ)

 

 

;;abd.lsp
(defun C:ABD (/ elist en ss)
(if
(setq ss (ssget (list (cons 0 "DIMENSION"))))
(while (setq en (ssname ss 0))
(setq elist (entget en))
(entmod (subst (cons 1 "<>\\X")(assoc 1 elist) elist))
(entupd en)
 (ssdel en ss)
)
   )
 (princ)
)
(princ "\n   ***  Start command with ABD to set dim text above line   ***")
(princ)

 

~'J'~

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