If an existing block or type in a SIMATIC AX library is renamed, a new block/type with the current name is created in the TIA Portal global library rather than updating the existing block. Blocks and types deleted in the AX library are not automatically removed from the global library.
The clean-up option enables you to remove deleted/renamed AX blocks from the TIA Portal global library.
To clean up a TIA Portal global library, provide the optional boolean command line parameter '-x' while calling the TIA Portal Library Importer.
You can modify your apax.yml file in the TIAX template as shown below:
scripts:
import-handover-documents-to-tia: '"$TIA_INSTALL_PATH\\bin\\Siemens.Simatic.Lang.Library.Importer.exe"
-i "$PATH_NAME" -o "$TIA_GLOBAL_LIB_PATH" -x'
The blocks removed from the TIA Portal global library are displayed in the console window after a successful clean-up.
If the blocks deleted/renamed in the SIMATIC AX library are called or used by any other blocks, these deleted/renamed blocks will not be removed from the TIA Portal global library. The older versions of these blocks are retained so that users can switch back to them if necessary, but are not updated.