Files owned by a component are compiled together to build the component. You can specify which model elements are generated in each file, the file names, and the directory paths. You can also create a file in the browser and drag-and-drop it into a component diagram.
About this task
A file must be nested within a component or a folder.
Note: A file cannot contain another element.
Procedure
- Right-click a Component in the browser and select . The File window opens.
- Begin to define this new file by typing the Name you want to replace the system generated name. Click Apply to save the name and keep the window open. The new file name displays in the diagram and in the browser, under the component with which it is associated.
Note: A file must be an element of a component or a folder. If the component diagram is under the project node, it is not yet associated with a component. First create a component, then nest the file by drawing it inside the component. If the diagram is already nested under an existing component, you can draw the file in the "free space" of the diagram editor.
- Change the remaining fields to define the file as you want.
- Click OK.