Book a Demo

Author Topic: How to create repository?  (Read 5115 times)

hansmaiser

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to create repository?
« on: February 21, 2006, 01:32:00 am »
HEllo,

how do I create a repository with the automation interface?

a code nsippet would be helpful...

thomaskilian

  • Guest
Re: How to create repository?
« Reply #1 on: February 21, 2006, 01:52:43 am »
AFAIK you can't do that. But you can copy an existing EAP to where you want and use this one. That has the same effect.

hansmaiser

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to create repository?
« Reply #2 on: February 21, 2006, 06:03:04 am »
If I want to add a diagram to the repository, must I open it before? I want to add a diagram hidden without opening the project visible for the user.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to create repository?
« Reply #3 on: February 21, 2006, 06:56:15 am »
I don't see any problem there.

Copy a template repository to your work location, if you need to.
Open the repository through the automation interface; the EA application will not be visible by default.
Locate the package you want to create the diagram in, and get a reference to it - say myPackage.
Create the diagram with:
  • myDiagram = myPackage.Diagrams.AddNew("My Diagram", "Logical")
  • myDiagram.Update()
  • <If you need to reference the diagram through the package> myPackage.Diagrams.Refresh()

I have used a class diagram by default (the "Logical" keyword). Check the documentation or help file to find the correct keywords for the rest of the diagram types; capitalization seems to count.
No, you can't have it!

thomaskilian

  • Guest
Re: How to create repository?
« Reply #4 on: February 21, 2006, 07:00:45 am »
How could you add it without having the repos open? You can however create a diagram as Neil stated in his post. Visibility is controlled via repos.OpenDiagram(int) / CloseDiagram (see help).

The automation model can also be found at EA Usergroup (no comments, but you can guess a lot be method names).

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to create repository?
« Reply #5 on: February 21, 2006, 07:33:17 am »
I was looking at the wording:
Quote
...add a diagram hidden without opening the project visible for the user.


I suppose you could add a diagram through SQL, but if you've got the API going anyway, why not just create the diagram that way?
No, you can't have it!

hansmaiser

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to create repository?
« Reply #6 on: March 01, 2006, 01:22:55 am »
@Midnight:

The idea behind this is to transform an EPC (Event Driven Process Chain), which is used in ARIS Toolset (ARIS is a business process modeling tool), to an UML activity diagram.