Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DanG83616 on June 04, 2013, 09:50:48 am

Title: State Machine Access in Model Transforms
Post by: DanG83616 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
Title: Re: State Machine Access in Model Transforms
Post by: Eve 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()%
Title: Re: State Machine Access in Model Transforms
Post by: DanG83616 on June 04, 2013, 12:43:18 pm
That was it! Thanks!