Book a Demo

Author Topic: Getting Started With Templates - Advice  (Read 2510 times)

dmcomer

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • Been there, done that, back for more....
    • View Profile
Getting Started With Templates - Advice
« on: May 23, 2007, 02:22:38 pm »
Hello,

I am getting started with templates. From what I can see, the help is somewhat terse. I was wondering if anyone can point me to a specific section of the manual, or reference on the web site to understand the scripting language of templates (i.e. default variables, rules, syntax, etc.).

Really, all I want to do to begin, it suffix my member variables in C# with m_ or _ based on the names I give my properties.

Thanks,

Dave

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Getting Started With Templates - Advice
« Reply #1 on: May 23, 2007, 06:00:02 pm »
Hi Dave,

I don't have a good answer at hand - but that doesn't mean there is nothing available.

In the meantime, before you delve too deeply into creating your own templates, perhaps EA can do some of the work for you.

If you have not already, take a look at the Tools | Options | Source Code Engineering page (in either EA 6.5 or 7.0). Near the bottom you can provide a set of prefixes. EA will remove these when creating properties to match attributes. There are also a couple of related options.

If you don't have a pressing need for templates other than this, perhaps these settings will be enough. Try them and see. Note that they also work (pretty well) when reverse engineering.

David
No, you can't have it!

dmcomer

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • Been there, done that, back for more....
    • View Profile
Re: Getting Started With Templates - Advice
« Reply #2 on: May 24, 2007, 05:25:32 am »
David,

Thanks for the reply. I haven't installe 7 yet (understand it's in beta 1). I will take a look at where you mentioned; I have actually worked my way around enough to get a rough idea of what's involved. Apparently, it will take a bit of searching keyword by keyword to understand the templates (I wish they'd put together a quick start). Non-the less, I think I discoved that if you add two variables, one a property, another a non-property, with m_ suffixed, that will accomplish what I want, but I know there is an automated way to do it. So, I will take your suggestion and see if I can make life easier. I think EA is a great value for the cost, and understand that thinks take a little RTFM and experiementing.

Thanks for the reply.

Dave

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Getting Started With Templates - Advice
« Reply #3 on: May 24, 2007, 08:40:52 am »
And... Search this forum often. Be creative with your keywords, as well as persistent in your searches; the forum software (not from Sparx) is a bit creative about search results.

David
No, you can't have it!