Author Topic: TRANSFORM_CURRENT for Behavioral Elements  (Read 3284 times)

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
TRANSFORM_CURRENT for Behavioral Elements
« on: June 18, 2013, 10:10:53 am »
Is there an easy way to copy the behavioral elements of one model to the next? I'm looking for the equivalent of TRANSFORM_CURRENT() on the behavioral elements.

Thanks,
Dan

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: TRANSFORM_CURRENT for Behavioral Elements
« Reply #1 on: June 19, 2013, 01:45:20 am »
I've resorted to using tags to carry the behavioral information forward. This approach works okay since I don't use the built-in code gen support for state machines.

Thanks anyway,
Dan

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: TRANSFORM_CURRENT for Behavioral Elements
« Reply #2 on: June 22, 2013, 03:08:38 am »
A couple of notes on this:
1. The only tag I needed was "TransformedFromGUID". The downstream transform uses the GUID to EASL_INIT() to start accessing the behavioral info. Perhaps there is a way to get the "transformed-from" GUID w/o a tag, but I couldn't find it.
2. When you change the behavioral model then run a transform and subsequently change the behavioral model, you must restart EA before re-transforming. The EASL doesn't seem to synchronize each time you run the transform. Ironically, EA has a defect in it's behavioral model of how to work with behavioral models.

Cheers,
Dan