Keyin to change font?

I'm attempting to set up a batch process that  will change the font (just the font) of all the text in a file.

So far I have

FT=<font name>

Choose all

<need keyin to change font here>

Is there such a keyin or am I going about this the wrong way?

Parents
  • Terry,

    I don't know of a direct change font keyin similar to what is available for change level, change color, etc.

    The MODIFY TEXT keyin will display the Change Text Attributes tool settings.

    With the Change Text Attributes tool active use the keyin SET ITEM TOOLSETTINGS to reveal the keyins that can be used to control the toggles in the tool settings dialog.

    The above keyin will check on the Font checkbox. You will have to set the other toggles =0 to turn them off.  
    Example: set item toolsettings changetextheighttoggle=0

    Rod

    Rod Wing
    Senior Systems Analyst

  • The funny thing... since posting I found that. I went one step farther though. I recorded a macro then just ran that macro in the batch processor. Took me a few minutes to figure out why it couldn't find the macro, though. Apparently you have to put the full path and file name inside quotation marks.

    Thanks!

    Terry Judy Jr.

    MS SS2 08.11.09.357

    GeoPAK SS2 08-11.07.536

    Cook Coggin Engineers, Inc. - Tupelo, MS

  • To use batch processing and recorded macro should provide pretty the same results.

    As RodWing wrote, if you choose to use script for batch processing only, the script to set text modification tool correctly (which means everything is off except font) is this:

    ' Start text modification
    toolmodify text

    ' Set and switch font on
    ft=<font name>
    set item toolsettings changetextfontnumtoggle = 1

    ' Set other settings off
    set item toolsettings changetextstyletoggle = 0
    set item toolsettings changetextusefencetoggle = 0
    set item toolsettings changetextheighttoggle = 0
    set item toolsettings changetextwidthtoggle = 0
    set item toolsettings changetextlinespacingtoggle = 0
    set item toolsettings changetextlinespacetypetoggle = 0
    set item toolsettings changetextintercharspacingtoggle = 0
    set item toolsettings changetextslanttoggle = 0
    set item toolsettings changetextunderlinetoggle = 0
    set item toolsettings changetextverticaltoggle = 0
    set item toolsettings changetextviewindependenttoggle = 0
    set item toolsettings changetextjustificationtoggle = 0
    set item toolsettings changeuseannotationscaletoggle = 0

    With regards,

     Jan

Reply
  • To use batch processing and recorded macro should provide pretty the same results.

    As RodWing wrote, if you choose to use script for batch processing only, the script to set text modification tool correctly (which means everything is off except font) is this:

    ' Start text modification
    toolmodify text

    ' Set and switch font on
    ft=<font name>
    set item toolsettings changetextfontnumtoggle = 1

    ' Set other settings off
    set item toolsettings changetextstyletoggle = 0
    set item toolsettings changetextusefencetoggle = 0
    set item toolsettings changetextheighttoggle = 0
    set item toolsettings changetextwidthtoggle = 0
    set item toolsettings changetextlinespacingtoggle = 0
    set item toolsettings changetextlinespacetypetoggle = 0
    set item toolsettings changetextintercharspacingtoggle = 0
    set item toolsettings changetextslanttoggle = 0
    set item toolsettings changetextunderlinetoggle = 0
    set item toolsettings changetextverticaltoggle = 0
    set item toolsettings changetextviewindependenttoggle = 0
    set item toolsettings changetextjustificationtoggle = 0
    set item toolsettings changeuseannotationscaletoggle = 0

    With regards,

     Jan

Children