Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: tathata on June 17, 2004, 09:06:15 am

Title: Import Reference Data (Code Templates)
Post by: tathata on June 17, 2004, 09:06:15 am
I have been working on a code template for ActionScript2 and I would like to import the template into another project.

I read and fallowed the instructions in the help doc several times.  The process of exporting and importing the reference data and selecting the desired code template works without producing any errors, however my newly imported code template doesn't show up in my new project after importing it!!

Maybe I am simply missing a step, but I fallowed the directions in the help and haven't been able to produce the desired result.

Anyone have a sugestion?  This issue and the previous post about the use of %packagePath% are the only 2 issues in deciding weather to purchase EA for our development process.

Thanks for you help,
Lance
Title: Re: Import Reference Data (Code Templates)
Post by: Eve on June 17, 2004, 11:31:54 pm
The step that I think you're missing is defining the language (via the language datatypes dialogue) before importing.

Simon
Title: Re: Import Reference Data (Code Templates)
Post by: tathata on June 18, 2004, 07:55:23 am
Yeah, your right.  I wasn't setting up the language datatypes before importing.

After recreating the datatypes in the new file it imports the code template fine.  :)

Is there any way of exporting the datatypes?  Looking through the Export Reference Data list I don't see anything that looks like you can :(  Recreating the language datatypes ever time i create a new project just seems like an unecessary step.

Thanks for you help!
Title: Re: Import Reference Data (Code Templates)
Post by: Eve on June 20, 2004, 03:34:01 pm
Every time you create a new model you actually create it from a base model.  Open a model, set it up the way you need it and then use that model as your base model from then on.

Simon
Title: Re: Import Reference Data (Code Templates)
Post by: JohnDoe on July 28, 2004, 12:40:58 am
@Tathata:

Have you succeeded in setting up that Actionscript 2.0 template EAP file ?

If so, could you please publish it for others (e.g. me) to use it as well, instead of reinventing the wheel !?

Thanks in advance !
Bernd