Technical Support
Have technical issues or suggestions? Please contact Visual Paradigm Support Team.
Sales Support
Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.
Round-trip engineering is the ability to generate model from source code and generate source code from model, and keep them synchronized. You can make use of round-trip engineering to keep your implementation model and source code up-to-date, so as to produce up-to-date documentation on your model.
You can generate C++ code from all classes in current project. To generate code from project:
![]() |
| To generate code for a project |
![]() |
| The mappings between models and source paths are defined |
| NOTE: | Documentation in model elements is generated as comment in code |
You can generate C++ code from an opening class diagram that contains the class(es) you want to generate code. To generate code from class diagram:
![]() |
| The mappings between models and source paths are defined |
| NOTE: | If you have generated code for once, the Generate Code dialog box will not appear next time you generate/update code for any diagram. If you want to configure the model-to-source-path mapping or to configure options, you can run a code generation for project (refer to the previous section for detail). |
| NOTE: | Documentation in model elements is generated as comment in code |
You can generate C++ code from specific class or classes. To generate code from class/classes:
![]() |
| To generate code for classes |
![]() |
| The mappings between models and source paths are defined |
| NOTE: | If you have generated code for once, the Generate Code dialog box will not appear next time you generate/update code for any class selection. If you want to configure the model-to-source-path mapping or to configure options, you can run a code generation for project (refer to the previous section for detail). |
| NOTE: | Documentation in model elements is generated as comment in code |
![]() |
| An overview of Generate Code dialog box |
|
|||||||||||||||||||||||||||||||||
| A description of Generate Code dialog box |
You can configure the advanced options for more control of the code by clicking the Advanced Options... button in Generate Code dialog box. In the Code Synchronization dialog box popped up, there are four categories (tabs) of settings you can configure. Below is a description.
![]() |
| Code configuration |
|
||||||||||
| A description of code configuration |
![]() |
| Brace and indentation configuration |
|
||||||||||||||
| A description of brace and indentation configuration |
![]() |
| New lines configuration |
|
||||||||||
| A description of new lines configuration |
![]() |
| Template configuration |
|
||||||||
| A description of template configuration |
You can make certain UML class not to generate code against code generation by ignoring them. To ignore class(es), click Ignore Classes... in Generate Code dialog box. In the second Generate Code dialog box that popped up, select the class(es) to ignore and click > to move them to the ignore list. Click OK to confirm.
![]() |
| The class IgnoreMe is ignored |
| Chapter 4. C++ Round-trip | Table of Contents | 2. Generate or update UML classes from C++ code |
Technical Support
Have technical issues or suggestions? Please contact Visual Paradigm Support Team.
Sales Support
Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.