Prev Next

Add New Features and Elements

These features and elements can be added to the source code during synchronization:

  • Attributes
  • Inner Classes
  • Operations

They are added by executing the relevant templates for each new element or feature in the model.

Enterprise Architect attempts to preserve the appropriate indenting of new features in the code, by finding the indents specified in list macros of the Class; for languages that make use of namespaces, the 'synchNamespaceBodyIndent' macro is available.

Classes defined within a (non-global) namespace are indented according to the value set for this macro, during synchronization.

The value is ignored:

  • For Classes defined within a Package set up as a root namespace, or
  • If the 'Generate Namespaces' option is set to False in the appropriate language page (C#, C++ or VB.Net) on the 'Preferences' dialog ('Start > View > Preferences > Source Code Engineering > <language>')

Learn more