MoI discussion forum
MoI discussion forum

Full Version: DIM TOOL(s) increase or decrease fonts

Show messages: All  1-3  4-9

From: stefano (LIGHTWAVE)
3 Jun   [#4] In reply to [#3]
Pleased to attach, a new prototype script / tool and it's seemingly working nicely (*).
Sets or sizes dim text font heights fast, interactively. You can use mouse or keyboard...

Command line word & script name "dimfont"






Run script and then select dim-annotation objects:



OR select objects and run the script....

Allows multi dim-text object selections BEFORE running the script...(not during)









Might be expanded to cover other elements 'another day'...
* feedback/input is welcome.

OTHER: Slider goes upto height "200", if you need bigger overwrite using <height> field,

How to 'install' scripts & 'assign' shortcuts:
Install scripts
Assign shortcut keys via options/shortcuts

Attachments:
dimfont_V1.zip

Image Attachments:
dimfont_height1.jpg  dimfont_height3.jpg  dimfont_height4.jpg  dimfont_height5.jpg  dimfont_height6.jpg 


From: mk (MARKY)
5 Jun   [#5] In reply to [#4]
Great tool, thank you.

BTW - I guess it's for Michael:

Is there a way to make an Arrow to be screen aligned too?
From: stefano (LIGHTWAVE)
5 Jun   [#6] In reply to [#5]
hi mk, thanks for your feedback.

it seems the font is the screen aligned function...

im using cplane a lot but dont think its what you need, best i let michael answer this!

cheers

Stefano
From: stefano (LIGHTWAVE)
5 Jun   [#7] In reply to [#6]
was curious to see we can create "screen aligned" arrows using ANSI arrow symbols..

Here are some of the most commonly used ANSI arrow symbols along with their Alt Codes and Unicode values:

Left Arrow: ← (Alt Code: 27, Unicode: U+2190)
Right Arrow: → (Alt Code: 26, Unicode: U+2192)
Up Arrow: ↑ (Alt Code: 24, Unicode: U+2191)
Down Arrow: ↓ (Alt Code: 25, Unicode: U+2193)
Double Arrow Right: ⇒ (Unicode: U+21D2)
Double Arrow Left: ⇐ (Unicode: U+21D0)
Up Down Arrow: ↕ (Unicode: U+2195)
https://www.i2symbol.com/symbols/arrows


Image Attachments:
use_alt_codes.jpg 


From: Michael Gibson
5 Jun   [#8] In reply to [#5]
Hi Marky,

re:
> Is there a way to make an Arrow to be screen aligned too?

There is a setting for it which isn't exposed in the UI but can be set through a script.

If you put in this for the command part of a shortcut key it should switch the property for making the arrowhead plane rotate to face the viewer on selected dims:

script:
var objs = moi.geometryDatabase.getSelectedObjects().getAnnotations();
if ( objs.length > 0 )
{
objs.setProperty( 'rotateArrowheadPlaneTowardsViewer', !objs.item(0).rotateArrowheadPlaneTowardsViewer );
}


- Michael
From: mk (MARKY)
5 Jun   [#9] In reply to [#8]
Hi Michael,

It works great.

Thanks a million,
Marek

Show messages: All  1-3  4-9