Book a Demo

Author Topic: Code Generation Templates  (Read 3624 times)

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Code Generation Templates
« on: August 13, 2011, 08:12:21 am »
Hi all
I'm a bit new to this, but I'm customising some of the code generation templates within my project. Does anyone know if it is possible to initiate a element search (for say connectors) from within a code template?
Thanks
Mark

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Code Generation Templates
« Reply #1 on: August 13, 2011, 06:13:27 pm »
I've realised that I need to write an add-in that provides additional utility functions to help me. Had a funny feeling that it wasn't going to be as easy as I had hoped....  :-/

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Code Generation Templates
« Reply #2 on: August 29, 2011, 01:02:24 am »
Well, what is it you need to do?

The thing with the code generation and model transformation scripts is that you can't control the execution order, but a lot of the time you don't actually need to (although you may end up with some ugly code and ultimately decide to go with the automation interface anyway).
My theories are always correct, just apply them to the right reality.