Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: rescobar on October 06, 2004, 08:15:55 am

Title: Avoid comments - Help needed
Post by: rescobar on October 06, 2004, 08:15:55 am
Hi, muchachos!
I don't like the comments generated by the forward eng. procedure. I would like to avoid them. How could I specify not to generate those comments? Or maybe to change them?
I tried "Code Generation Templates" erasing "Notes" but comments are generated anyway.
Thanks in advance for your kind help
Ramiro
Title: Re: Avoid comments - Help needed
Post by: Bruno.Cossi on October 06, 2004, 08:33:28 am
Hola,

I think you are referring to the comments on the file, right? If you look at the code generation template for, for example, C#:

///////////////////////////////////////////////////////////
//  %fileName%
//  Implementation of the %elemType% %className%
//  Generated by Enterprise Architect
//  Created on:      %eaDateTime%
%if classAuthor != ""%
//  Original author: %classAuthor%
%endIf%
///////////////////////////////////////////////////////////\n

$COMMENT="WARNING: DO NOT MODIFY THIS TEMPLATE BELOW THIS POINT"
\n\n
%ImportSection%
%list="Namespace" @separator="\n\n"%

Just remove this:

///////////////////////////////////////////////////////////
//  %fileName%
//  Implementation of the %elemType% %className%
//  Generated by Enterprise Architect
//  Created on:      %eaDateTime%
%if classAuthor != ""%
//  Original author: %classAuthor%
%endIf%
///////////////////////////////////////////////////////////\n

That will stop generating the comments.

Hope this helps!

Bruno
Title: Re: Avoid comments - Help needed
Post by: rescobar on October 06, 2004, 11:01:46 am
Hi, Bruno. Thanks a lot. It works!
Title: Re: Avoid comments - Help needed
Post by: Bruno.Cossi on October 06, 2004, 12:27:05 pm
You're welcome!