Jump to content

Recommended Posts

Posted

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.

Posted

You ask the question, then answer the question and hint at a group code but don't share that with us?:huh:

 

What's up with that? Did we insult you?:o

 

I just love these self-answering questions. Leaves more time for drinking coffee.:lol:

Posted

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.

Posted

Thank you for sharing that information with us. Much appreciated. :)

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