Sybase 7.5 Water System User Manual


 
Chapter 2 Building an Object-Oriented Model
59
Copying an attribute to another class
You can copy an attribute from one class and add it to another class. If the
class already contains an attribute with the same name or code as the copied
attribute, the copied attribute is renamed. For example the attribute
PERIPHLD is renamed PERIPHLD2 when it is copied to a class which
already contains an attribute PERIPHLD.
v To copy an attribute to another class:
1 Double-click a class in the model.
The class property sheet appears.
2 Click the Attributes tab.
The Attributes page appears.
3 Click the Add Attributes tool.
A selection box appears. It lists attributes attached to all other classes in
the model.
4 Select one or more attributes in the list.
5 Click OK.
The copied attributes appear in the list of attributes for the current class.
6 Click OK.