DIM TOOL a bright way to increase or decrease font sizes

Next
 From:  stefano (LIGHTWAVE)
11538.1 
Just posting a script Michael did me the other day.
If you use this script or both of them it allows you to zoom into the screen and get dimension sizes looking great

I use these scripts in conjunction with settings > “scaling dimensions by screen size”


Increase font size:

script: /* Increase dim font size */ var dims = moi.geometryDatabase.getObjects().getAnnotations(); for ( var i = 0; i < dims.length; ++i ) { var dim = dims.item(i); if ( dim.fontName == '' ) { dim.fontName = moi.ui.fontName; dim.fontPtSize = moi.ui.fontSize; } dim.fontPtSize += 3.0; }

Decrease font size:

script: /* Decrease dim font size */ var dims = moi.geometryDatabase.getObjects().getAnnotations(); for ( var i = 0; i < dims.length; ++i ) { var dim = dims.item(i); if ( dim.fontName == '' ) { dim.fontName = moi.ui.fontName; dim.fontPtSize = moi.ui.fontSize; } dim.fontPtSize -= 3.0; if ( dim.fontPtSize < 1.0 ) { dim.fontPtSize = 1.0; } }








  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mik (MIKULAS)
11538.2 In reply to 11538.1 
Excellent scripts, I missed them too :-)
Thanks a lot.
Mik
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Marbleman
11538.3 
Excellent, I've just found these too!
www.jameselliott.co.uk
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All