Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mogra69 on October 15, 2006, 01:54:34 pm

Title: Model Patterns
Post by: mogra69 on October 15, 2006, 01:54:34 pm
Using the auotmation interface is there way to know the 'Model Pattern' that was used to create the project?

The EA_FileOpen() handler is invoked before the 'Select Models' dialog where the user chooses the Model Pattern(s). Is there way to see what was selected in the Select Models dialog?
Title: Re: Model Patterns
Post by: «Midnight» on October 15, 2006, 02:07:13 pm
AFAIK there is no way to do this. The handler you refer to traps the event that signals that the file is now opening in case your application needs to do some housekeeping (or whatever) before you move to the next stage.

As far as the dialog you refer to, once a 'real' user finishes selecting templates and dismisses the dialog, it is gone. While the user could add additional templates later, using the same dialog, once again when the dialog is closed it is gone. [Once again, AFAIK] The project does not keep an internal record of which if any templates were chosen.