Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on October 21, 2012, 06:13:12 pm

Title: API: Code generation for diagram
Post by: zalbina on October 21, 2012, 06:13:12 pm
Hello,

Is it possible to run code generation script for all diagram's classes or at least for one class using API?

Thanks.
Title: Re: API: Code generation for diagram
Post by: zalbina on October 21, 2012, 07:22:08 pm
I did find the GenerateClass (string ElementGUID, string ExtraOptions) method of the Project class, but this method does not show the Code Generation Dialog Box and puts all .java files in some default directory what is not write. Probably I have to use this ExtraOptions string but I found nothing about that.

Thanks.