IBM Support

How to name a package with spaces in Rational Rhapsody

Technote (FAQ)


How do you name a package with spaces / slashes or dashes in IBM Rational Rhapsody?


You have a requirement to include space or dash in the package name of your model in Rational Rhapsody.


The General::Model::NamesRegExp property specifies the regular expression describing the format of a legal name of an element. You may manipulate this property to allow spaces or slashes in the name of an element.

To do this, you need to add a space after the underscore in the default value, as follows:

^(([a-zA-Z_][a-zA-Z0-9_ ]*)|(operator.+))$

Note: This change applies to all types of named elements. If you are going to generate code for the element, spaces in some element names are not allowed (for example, class names). Therefore, you would most likely use this property for elements that never participate in code generation, such as an analysis (not design) package.

Document information

More support for: Rational Rhapsody
General Information

Software version: 7.6.1,,,, 8.0, 8.0.1, 8.0.2

Operating system(s): Windows

Reference #: 1641772

Modified date: 24 June 2013