Reading master settings (Python)

Reading master settings (Python)
 1# This example displays the names of all the import/export master
 2# tool settings from the active database in the output toolbox
 3
 4# Create a local variable for the output toolbox
 5ot = impact.gui.output_toolbox
 6
 7# Clear the output toolbox
 8ot.clear()
 9
10# Find all the master tool settings
11settings = impact.active_database.find_master_tool_settings( ipMasterSettingType.mstImportExport )
12
13# Check the settings were found
14if not settings.isNone():
15    # Iterate through all the found settings
16    for setting in settings:
17        # Display the name of the setting in the output toolbox
18        ot.add(setting.name)