Book a Demo

Author Topic: Avoid comments - Help needed  (Read 4126 times)

rescobar

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
  • Viva Bolivia
    • View Profile
Avoid comments - Help needed
« 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
Sergio Escobar
[email protected]

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Avoid comments - Help needed
« Reply #1 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

rescobar

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
  • Viva Bolivia
    • View Profile
Re: Avoid comments - Help needed
« Reply #2 on: October 06, 2004, 11:01:46 am »
Hi, Bruno. Thanks a lot. It works!
Sergio Escobar
[email protected]

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Avoid comments - Help needed
« Reply #3 on: October 06, 2004, 12:27:05 pm »
You're welcome!