Author Topic: State Machine Access in Model Transforms  (Read 2712 times)

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
State Machine Access in Model Transforms
« on: June 04, 2013, 09:50:48 am »
It looks like the EASL macros only work in the code gen context. Are there macros to access state models from model transform templates. I didn't see anything documented but I might have missed it or perhaps there are undocumented macros. Just want to double check before extending my add-in...

Thanks,
Dan

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: State Machine Access in Model Transforms
« Reply #1 on: June 04, 2013, 10:33:34 am »
I think you'll find that the problem is that you need to add the following to your File template.

Code: [Select]
%EASL_INIT(classGUID)%

Rest of your code.

%EASL_END()%

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: State Machine Access in Model Transforms
« Reply #2 on: June 04, 2013, 12:43:18 pm »
That was it! Thanks!