Modifying the site.prp file

The factory.prp file is where the basic properties for the product are provided. You can use the site.prp file to override the settings in the factory.prp file for your whole company.

About this task

For example, if you want the display name for an actor on a use case diagram to show its full-path name (instead of the factory default setting for the relative name) for every project created, you would set this up in the site.prp file.

Note: Do not modify any of the original factory.prp or language-specific factory<lang>.prp files so that you can return to the factory defaults if needed.

Procedure

To change a default value for a property for your entire company:

  1. Open the factory.prp file, and locate and copy the property you want to change the default for your entire company. You must copy the subject::metaclass::property including the end line. See the code sample in this topic.
  2. Open the site.prp file, paste what you copied, and modify the property. See the code sample in this topic.
  3. Save the site.prp file.
  4. If opened, restart IBM® Rational® Rhapsody®.

Results

The following code sample shows the factory default for the UseCaseGe::Actor::ShowName property with the default of Relative. This means that by default when you create an actor for a use case diagram, its relative name is displayed.

Subject UseCaseGe
	Metaclass Actor
		Property ShowName Enum  "Full_path,Relative,Name_only,Label" "Relative"
		Property ShowStereotype Enum "Label,Bitmap,None" "Label"
	end
end

The following code sample shows a modification of the same property in the site.prp file where the default has been changed to Full-path. This means that going forward, any actor created for a use case diagram shows it full-path display name. Any actors created for a use case diagram before the modification in the site.prp file continue to show their display name in whatever the default value was when they were created.

Subject UseCaseGe
	Metaclass Actor
		Property ShowName Enum  "Full_path,Relative,Name_only,Label" "Full-path"
		Property ShowStereotype Enum "Label,Bitmap,None" "Label"
	end
end

Feedback