Jump to content

Recommended Posts

Posted

I remember doing this a few years ago, but forget the text formatting control codes. When clicking on a dimension than checking the Properties palette, I go down to the Text Override box and put in some kind of code to display a blank/empty value. It looked something like this . Does anyone remember how to do that? Maybe I have the symbols in the wrong order or need a letter after the backslash. I know returns the actual dimension value, but what combination of letters symbols hides the value, so it can't be seen in the drawing? Basically what would be seen is a dimension without any text or numbers.

Posted

ALT+255 in Text override will display nothing but still have a gap where the dim should be.

 

KC

Posted
ALT+255 in Text override will display nothing but still have a gap where the dim should be.

 

KC

 

Ok, KC, I'll try that tomorrow. Maybe I can get rid of the gap if I adjust the properties to move where the supposed text would be to another area of the dimension. Anyone else know what I'm searching for?

Posted

Try just putting a single space " ".

Posted
Try just putting a single space " ".

 

Alright, Alan, I'll try that too. If I figure it out, I'll be sure to post it tomorrow. Good night.

Posted
ALT+255 in Text override will display nothing but still have a gap where the dim should be.

 

KC

 

I'm going to try just as soon as I can. Oops! Just worked between try 'n just. Nice! 8)

 

I see a simple tap on the spacebar worked too. Fast 'n easy!

Posted
Try just putting a single space " ".

 

LOL, I had to go and make it all complicated...

 

KC

Posted
Try just putting a single space " ".

 

@Alan: Yep, a simple space suffices! Thanks all for sharing.

Posted
LOL, I had to go and make it all complicated...

KC

No worries. I do that same thing all the time. :)

 

@Alan: Yep, a simple space suffices! Thanks all for sharing.

 

Good deal. Here's a little code to make life even easier...

(defun c:DimBlank (/ ss e)
 (vl-load-com)
 (and (setq ss (ssget "_:L" '((0 . "DIMENSION"))))
      ((lambda (i)
         (while (setq e (ssname ss (setq i (1+ i))))
           (vl-catch-all-apply
             (function vla-put-textoverride)
             (list (vlax-ename->vla-object e) " ")
           ) ;_ vl-catch-all-apply
         ) ;_ while
       ) ;_ lambda
        -1
      )
 ) ;_ and
 (princ)
) ;_ defun

Posted
No worries. I do that same thing all the time. :)

 

 

 

Good deal. Here's a little code to make life even easier...

(defun c:DimBlank (/ ss e)
 (vl-load-com)
 (and (setq ss (ssget "_:L" '((0 . "DIMENSION"))))
      ((lambda (i)
         (while (setq e (ssname ss (setq i (1+ i))))
           (vl-catch-all-apply
             (function vla-put-textoverride)
             (list (vlax-ename->vla-object e) " ")
           ) ;_ vl-catch-all-apply
         ) ;_ while
       ) ;_ lambda
        -1
      )
 ) ;_ and
 (princ)
) ;_ defun

 

Alan, what does this code do?

Posted
Alan, what does this code do?

Sets all selected Dimensions with a " " value.

Posted
Sets all selected Dimensions with a " " value.

 

Nice! Very useful.

Posted
Nice! Very useful.

You're very welcome.

 

Just for grins, this one will toggle...

 

(defun c:DimBlankTG (/ ss e)
 (vl-load-com)
 (and (setq ss (ssget "_:L" '((0 . "DIMENSION"))))
      ((lambda (i)
         (while (setq e (ssname ss (setq i (1+ i))))
           (vl-catch-all-apply
             (function (lambda ()
                         (vla-put-textoverride
                           (setq e (vlax-ename->vla-object e))
                           (if (eq (vla-get-textoverride e) "")
                             " "
                             ""
                           ) ;_ if
                         ) ;_ vla-put-textoverride
                       ) ;_ lambda
             ) ;_ function
           ) ;_ vl-catch-all-apply
         ) ;_ while
       ) ;_ lambda
        -1
      )
 ) ;_ and
 (princ)
) ;_ defun

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