Edit the Naming Rule Script

Security Note: You need the Allow script maintenance and Allow the user to maintain naming script security right in the Scripting user group security rights group for this activity.

Activity Steps

  1. Open the Named Object Generator (script editor).

    The Scripting Ribbon Tab displays.

  2. Edit the C# script. See Naming Rule Scripts.
  3. Append the public class code after any other public classes in the naming rule script.
  4. Ensure that script references are selected:
    1. Note the DLLs that are referenced in the script. The DLLs are listed at the top of the script, after the word "using".
    2. Select the References tab.
    3. Select the required DLLs.
  5. Click the Build icon on the Scripting ribbon tab to compile the script.
  6. Click the Save icon on the Scripting ribbon tab.
  7. To apply the naming rule script to the object:
    1. Open the Naming Rules.
    2. Locate and select the item to be changed.
    3. Check Use Script.

      Whether to use script to manage the object name generation.

    4. Select the Script to be used.

      Select from all naming scripts coded on the Named Object Generator (script editor) screen.

    5. If object names generated using this script are not to be edited, check Disallow Name Editing.

      If checked, when a script is run, the name generated cannot be edited. The renaming of the object will be disabled on all screens (for example, via right-click rename, or click to edit). Any nodes with a Rename right-click option have that option removed when name editing is not allowed.

      Example: If TruckDespatch has a naming script, when a truck despatch name is generated, if a rename is attempted for it on all screens, a warning is given that this cannot be done.

    6. Click Save.