Object model diagrams External element code access To access the code in the external files, create relations to them (such as dependencies with «Usage» stereotypes, generalizations, associations, and so on). Note that the resultant source code will automatically contain the correct #include statements for the external elements. In the Features window for the configuration, set the scope to Selected Elements , and verify that the external files are not checked. When you generate code that includes relations to external elements: Љ Dependencies are converted to #includes . Љ Generalizations are converted to inheritance and #include .
Љ Associations are converted to data members and #includes . Љ Types are converted to type and #include . Љ Objects and parts are instantiated. Once you have created the external elements, you can edit the code using the Edit menu, edit options in the menu, or active code view window, just as you do for any Rational Rhapsody code. Adding source files to the build To add the source files of an external element to the build: 1. Add the component file that contains the mapping of the necessary external elements to the component. 2. Set the property CG::File::Generate to Cleared . 3. Set the property CG::File::AddToMakefile to Checked . 610 User Guide