Using CHNGTXT in a batch process

Hi

I am looking to change a spcific text in an enter data field in several files with a batch processes. So far, I think I have found out, that the "Find and Replace Text"-tool is part of the CHNGTXT MDL. My problem however is how to make a script, that uses CHNGTXT? What is the syntax when scripting to this MDL?

Best regards
Jens

Parents
  • To change all the text that reads cement to read concrete, use the following commands in a script file:

    MDL KEYIN FINDREPLACETEXT
    FIND DIALOG SEARCHSTRING cement
    FIND DIALOG REPLACESTRING concrete
    CHANGE TEXT ALLFILTERED

    Or plop the commands into a macro similar to the following:

    Sub main
        Dim startPoint As MbePoint
        Dim point As MbePoint, point2 As MbePoint
        MbeSendCommand "MDL KEYIN FINDREPLACETEXT"
        MbeSendKeyin "FIND DIALOG SEARCHSTRING cement"
        MbeSendKeyin "FIND DIALOG REPLACESTRING concrete"
        MbeSendKeyin "CHANGE TEXT ALLFILTERED"
    End Sub

Reply
  • To change all the text that reads cement to read concrete, use the following commands in a script file:

    MDL KEYIN FINDREPLACETEXT
    FIND DIALOG SEARCHSTRING cement
    FIND DIALOG REPLACESTRING concrete
    CHANGE TEXT ALLFILTERED

    Or plop the commands into a macro similar to the following:

    Sub main
        Dim startPoint As MbePoint
        Dim point As MbePoint, point2 As MbePoint
        MbeSendCommand "MDL KEYIN FINDREPLACETEXT"
        MbeSendKeyin "FIND DIALOG SEARCHSTRING cement"
        MbeSendKeyin "FIND DIALOG REPLACESTRING concrete"
        MbeSendKeyin "CHANGE TEXT ALLFILTERED"
    End Sub

Children