Description : |
When generating code from a model, you will try to generate as much code as possible. Nevertheless, some parts may require some hand-coding. What happens then if you generate code again after having modified code in the first round ? User Code functionality helps you to solve this issue by generating special tags that will preserve code manually written. You will be able to generate by increment. |
Syntax : |
An User Code area is delimited by two lines : - The first line that will contain the statement <%startUserCode%> - The last line that will contain the statement <%endUserCode%> If you have many User Code areas within a generated file, each "first line" must be different from one another. If by chance some user code is lost, it is placed at the end of the file as commented code. |
Example : |
![]() |