Object model diagrams #includes for a class, object, or file External dependencies (dependencies with a «Usage» stereotype and the CG::Dependency::UsageType property set to Specification/Implementation ) and implicit dependencies (such as associations and generalizations) are generated as forward declarations and #include statements. To generate a local #include statement (for example, #include ), set the property CG::File::IncludeScheme to LocalOnly . To generate a relative #include statement (for example, #include ), set the CG::File::IncludeScheme to RelativeToConfiguration .
You can also use the C_CG/CPP_CG/JAVA_CG::Package::GenerateDirectory and CG::Class/ Package::FileName properties to set relative paths. See the definition of this property in the Features window. Limitations Note the following restrictions and behavior of external elements: Љ External elements are not animated; they behave like the system border. Љ Changes in the source files of external elements are not roundtripped. If necessary, use reverse engineering to update external elements. Љ Only the following elements can be external: class, implicit object or file, package, and type. Components, folders, variables, and functions cannot be external.
Љ You cannot use Add to Model to add an external element as a unit. However, you can add the unit under another name, and then set that unit to be external. 612 User Guide