Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: jarnold30 on July 08, 2022, 07:01:00 am

Title: generate code from a port
Post by: jarnold30 on July 08, 2022, 07:01:00 am
Hi all
I am trying to generate code from a port attached to a class.
I'm struggling to work out how to make the ports visible to the code generator macros.
Ay ideas?
John
Title: Re: generate code from a port
Post by: qwerty on July 08, 2022, 05:27:00 pm
Use the API to parse your model and spit out code. That's by far easier than learning those limited macros.

q.
Title: Re: generate code from a port
Post by: jarnold30 on July 09, 2022, 01:02:31 am
Thanks.  Given what a general pain in the a**e the macros are, I may have little choice.
Title: Re: generate code from a port
Post by: qwerty on July 09, 2022, 01:12:34 am
I made that once and it was sooo easy. You can use your favorite coding language and do anything you need the way you want it.

q.