Freerefill Posted September 30, 2009 Posted September 30, 2009 Greetings. I've noticed that whenever you click and drag the insertion point of the text of a dimension, several properties of the dimension become "grayed out" and inaccessible, specifically, Text outside align, Text pos hor, Text pos vert, Text inside align, Fit, and Text inside. When the text is altered via the insertion point, these properties are no longer accessible. I find this troublesome because, often, I'll want to return them to the way they were initially, which allows me to click and drag the extension lines and have the text remain centered. It will not automatically center itself if it has been previously altered. My question is, is there any method to return access to those properties? I have several dimensions I would like to fix, and re-creating them would be a pain. Any advice would be appreciated. ^.^ *EDIT* Answered my own question, actually. I found the group code that controlled the alignment, I simply forced it back to the default with a small LISP routine. Quote
ReMark Posted September 30, 2009 Posted September 30, 2009 You ask the question, then answer the question and hint at a group code but don't share that with us? What's up with that? Did we insult you? I just love these self-answering questions. Leaves more time for drinking coffee. Quote
Freerefill Posted September 30, 2009 Author Posted September 30, 2009 Truth be told, I wasn't sure if it would be improper to post a LISP outside of the LISP forum, so I didn't ^^' It would be so very rude of me to tempt you and not offer the sustenance you long for, so without further ado, (defun c:fd( / ss eLst) (princ "\nSelect dimensions: ") (setq ss (ssget '((0 . "DIMENSION")))) (if ss (foreach forVar (vl-remove nil (mapcar '(lambda (x) (if (= (type (cadr x)) 'ENAME) (cadr x) '())) (ssnamex ss))) (setq eLst (entget forVar)) (setq eLst (subst '(70 . 32) (assoc 70 eLst) eLst)) (entmod eLst) (entupd forVar) ) ) (princ) ) Seems group code 70 is the one responsible for text alignment. This very simple LISP simply sets the alignment to the default, which, as I gathered from checking the group code of a new dimension (without formatting), is 32. Quote
ReMark Posted September 30, 2009 Posted September 30, 2009 Thank you for sharing that information with us. Much appreciated. 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.