Book a Demo

Author Topic: generate code from a port  (Read 2319 times)

jarnold30

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
generate code from a port
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: generate code from a port
« Reply #1 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.

jarnold30

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: generate code from a port
« Reply #2 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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: generate code from a port
« Reply #3 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.