Author Topic: Transform templates - setting element parents  (Read 141 times)

Tschana

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Transform templates - setting element parents
« on: June 14, 2018, 05:59:45 pm »
Hello all,

I'm currently searching for a solution to set element parent during PIM to PSM transformation.
As a user can manually set the parent of an element like described in following help article:
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/setelementparent.html
I would like to do this during the transformation, so if I start the code generation from the PSM model the
Code: [Select]
%ClassInherits%
template substitution macro generates the right output, e.g.:
Code: [Select]
class Class A : public <<manualSetParent>>, public <<otherParent>>
Does somebody know if it is possible to set element parents during transformation? And if so, how?

Thanks in advance and best regards,
Tschana