Global File Changer - How can I delete a text element based on in its value in multiple files?

Global File Changer - How can I delete a text element based on in its value in multiple files?


This article walks you through selecting and deleting text elements based on their value in multiple files.

Attached to this article is a KEY file and an SEL that Global File Changer uses to perform this operation. The KEY file contains commands that MicroStation executes. The SEL file identifies which elements those commands are applied to.

  1. Save the provided Delete-Text.key and Select-Text.sel files to a convenient location.
  2. Open the KEY file with Notepad.
    a. Locate D:\Axiom\, and replace it with the path where you saved Select-Text.sel in step 1.
    b. Save and exit when complete.
  3. Load Global File Changer.

  1. Go to Settings | Restore Factory Defaults…, and press <Yes> when prompted.
    This is a precaution to ensure there are no other features or settings active that might impact your result.
  2. Next to the Design Files: field, press the <Select...> button.
  3. Either drag and drop your files into the Choose Files to Process dialog box, or navigate to and select your files for processing.

  1. Next to the Key-in File: field press <Select...>, then navigate to and select the Delete-Text.key file saved previously.
  2. Go to Selection | Element selection…
  3. In the Element Selection dialog box, go to File | Open…, then navigate to and select the Select-Text.sel file.

  1. Under Element types, press the small black arrow next to the word Text.

  1. From the Text Attributes dialog box:
    a. In the Text String field, enter the text string you want to select for deletion.
    b. Press Tab on your keyboard to activate the <Add> button, then press <Add>.
    (Repeat steps a & b for each additional text string you want to select for deletion.)
    c. Select the line containing the placeholder text “HOLD”, then press <Remove>.
    d. When finished press <OK> to return to the Element Selection box.
  2. Go to File | Save to save your changes, then press <OK> to return to the main dialog box.
  3. Press <Start> to process your files.

When the process is complete, all instances of your specified text element(s) will be deleted in all processed files.