Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DaveK on July 18, 2007, 07:19:13 am

Title: Code Generation Template help
Post by: DaveK on July 18, 2007, 07:19:13 am
I am trying to modify the C# code generation template and need some help. Currently the templates generate classes for me using the following format:

Code: [Select]

public Packer Packer{
       get{
               return Packer;
       }
       set{
               Packer = value;
       }
}


I want it to look like this:

Code: [Select]

public Packer Packer
{
       get
       {
               return Packer;
       }
       set
       {
               Packer = value;
       }
}


The end goal I'd like to is to put the opening brace on a separate line throughout the entire class.
Title: Re: Code Generation Template help
Post by: «Midnight» on July 18, 2007, 09:15:02 am
Dave,

Look up Control Macros in the EA help (I am basing this on EA build 7.0 814). I think you want the PI macro. You'll need to play around a bit to get the hang of it.

David