Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: toolmaker on June 28, 2007, 01:41:26 am

Title: Code Generation for Python
Post by: toolmaker on June 28, 2007, 01:41:26 am
I've been trialing EA for possible use with a Python project. Overall I like what I see, but I'm not certain yet how useful the code generation from class diagrams will be. I'd like to know if the following is possible in EA:

1. Automatically generate __init__ methods for classes, complete with a call to any base class __init__ method.

Thanks for your help.
Title: Re: Code Generation for Python
Post by: thomaskilian on June 28, 2007, 09:28:58 am
I guess you need to modify the code gen templates for this. But someone with more Python background might know more.
Title: Re: Code Generation for Python
Post by: JohnDoe on June 30, 2007, 11:46:02 am
Hi,

I have the same problem as toolmaker: I regard the syntax of code gen templates as rather complex. Are there any examples or syntac descriptions available, that help to build templates step by step ?

Regards
Bernd
Title: Re: Code Generation for Python
Post by: «Midnight» on July 03, 2007, 02:45:33 am
Bernd,

Have you browsed the EA Wiki? You'll find directions to this in the top thread of the Automation and Scripting section of the forum. Read the first posting to the thread. The address of the EA User Group is in the post, and the address of the Wiki is at the bottom. The Wiki is the more active of the two these days.

I've not checked myself, since: I'm not sure exactly what you are seeking, and I'd like to introduce you to this resource.

David