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?
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 WingSenior 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 onft=<font name>set item toolsettings changetextfontnumtoggle = 1' Set other settings offset item toolsettings changetextstyletoggle = 0set item toolsettings changetextusefencetoggle = 0set item toolsettings changetextheighttoggle = 0set item toolsettings changetextwidthtoggle = 0set item toolsettings changetextlinespacingtoggle = 0set item toolsettings changetextlinespacetypetoggle = 0set item toolsettings changetextintercharspacingtoggle = 0set item toolsettings changetextslanttoggle = 0set item toolsettings changetextunderlinetoggle = 0set item toolsettings changetextverticaltoggle = 0set item toolsettings changetextviewindependenttoggle = 0set item toolsettings changetextjustificationtoggle = 0set item toolsettings changeuseannotationscaletoggle = 0
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Yeah, Jan, that took me some trial and error but I got it. Thanks!
All worked great is there anyway to also set the Text Style via Key-in commands like theses above
rphillips@logicalsysinc.com
Version: MicroStation V8i SS 10
RJB Phillips III (Richard) Praise the Lord for His Mercy and grace in Christ Jesus
This is an old thread, it may be more appropriate to raise as a new post, may be the following keyin will help :
textstyle active stylename
Where stylename is the textstyle name required