Rename a Component

<< Click to Display Table of Contents >>

RayPack > 7.3 u6 > User Guide > PackDesigner > MSI / MST / RPP Based Projects > Advanced Mode > Components 

Rename a Component

To rename a component from the COMPONENTS view, users may use different methods:

 

Left-click a component in the item list on the left-hand side of the view and hit F2 on the keyboard

Right-click a component in the item list on the left-hand side of the view and select Rename from the context menu

Left-click a component in the item list on the left-hand side of the view and

oclick the existing component identifier value in the details pane on the right-hand side

oclick on the edit icon right next to the existing component identifier value in the details pane on the right-hand side

 

Either way, the edit mode for the component identifier value is enabled. Users may directly enter the new identifier value and hit Enter on the keyboard to save the new state. (Please refer to the help section about common dialogs for more details about the direct value editor interface used in the details pane of the COMPONENTS view.)

Naming Conventions for Component Identifiers

Renaming a component actually means to manipulate the internal object identifier. Therefore, the usual restrictions on values stored within database columns of the identifier type have to be followed:

 

The name of a component has to be a unique, not empty alphanumeric string.

Component names may contain the ASCII characters A-Z (a-z), digits, underscores (_), or periods (.).

Every identifier must begin with either a letter or an underscore.

 

If an invalid value is entered as component name, RayPack reacts differently, depending on the actual area where the renaming was executed:

 

Error handling in the list view
Invalid names are marked with a red error icon on the left hand side of the input area. Hovering over the icon reveals the error message as a tool tip. The new value will not be saved until all restrictions are evaluated positively.
 

Error handling in the details pane
Invalid names are marked with a red border and background color for the input field. Hovering over the control object reveals a tool tip message, indicating how to solve the issue.