dughug Posted March 31, 2010 Share Posted March 31, 2010 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. Quote Link to comment Share on other sites More sharing options...
kencaz Posted March 31, 2010 Share Posted March 31, 2010 ALT+255 in Text override will display nothing but still have a gap where the dim should be. KC Quote Link to comment Share on other sites More sharing options...
dughug Posted March 31, 2010 Author Share Posted March 31, 2010 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? Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 31, 2010 Share Posted March 31, 2010 Try just putting a single space " ". Quote Link to comment Share on other sites More sharing options...
dughug Posted March 31, 2010 Author Share Posted March 31, 2010 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. Quote Link to comment Share on other sites More sharing options...
Tankman Posted March 31, 2010 Share Posted March 31, 2010 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! I see a simple tap on the spacebar worked too. Fast 'n easy! Quote Link to comment Share on other sites More sharing options...
kencaz Posted March 31, 2010 Share Posted March 31, 2010 Try just putting a single space " ". LOL, I had to go and make it all complicated... KC Quote Link to comment Share on other sites More sharing options...
dughug Posted March 31, 2010 Author Share Posted March 31, 2010 Try just putting a single space " ". @Alan: Yep, a simple space suffices! Thanks all for sharing. Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 31, 2010 Share Posted March 31, 2010 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 Quote Link to comment Share on other sites More sharing options...
dughug Posted March 31, 2010 Author Share Posted March 31, 2010 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? Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 31, 2010 Share Posted March 31, 2010 Alan, what does this code do? Sets all selected Dimensions with a " " value. Quote Link to comment Share on other sites More sharing options...
dughug Posted March 31, 2010 Author Share Posted March 31, 2010 Sets all selected Dimensions with a " " value. Nice! Very useful. Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 31, 2010 Share Posted March 31, 2010 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 Quote Link to comment Share on other sites More sharing options...
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.