Author Topic: .NET Repository List  (Read 1699 times)

m2i7c9k

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
.NET Repository List
« on: June 26, 2019, 03:34:11 pm »
Hi Guys,

is there a way how get a list of opener repository?

I have opened a few EA projects. And I want to get a list of opened repositories and select the one to import diagram element to MS Word.
I tried it by processes, but can't "set" the EA repository witch be the main for importing element to MS Word.

Thax

Mick
« Last Edit: June 26, 2019, 05:52:58 pm by m2i7c9k »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11299
  • Karma: +421/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: .NET Repository List
« Reply #1 on: June 26, 2019, 05:08:25 pm »
Should be possible somehow by checking the title's of the open ea.exe processes, but I haven't figured it out myself yet.

I always make sure I only have one ea.exe process open.

Geert

m2i7c9k

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: .NET Repository List
« Reply #2 on: June 26, 2019, 05:54:08 pm »
Tanks Geert, I will not waste time for that idea :)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7608
  • Karma: +95/-18
    • View Profile
Eve

support@sparxsystems.com

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: .NET Repository List
« Reply #4 on: July 10, 2019, 02:27:22 pm »
I just exposed the source for one of my projects that does exactly this.  There are two functions in the library, one identifies and returns a repository object given it's instanceGUID and the other returns a list of all open repositories.

The line of code that filters by instanceGUID can be changed to filter by anything available through the Repository interface.

https://github.com/smend5464/SparxEA

Stan.

m2i7c9k

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: .NET Repository List
« Reply #5 on: July 15, 2019, 07:26:22 pm »
Hi Stan!

That's great, thank you. I'll try it to transform into .NET.

Mick

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7608
  • Karma: +95/-18
    • View Profile
Re: .NET Repository List
« Reply #6 on: July 16, 2019, 08:55:47 am »
That's great, thank you. I'll try it to transform into .NET.
??? It's C#.
Eve

support@sparxsystems.com

qwerty

  • EA Guru
  • *****
  • Posts: 12425
  • Karma: +347/-291
  • I'm no guru at all
    • View Profile
Re: .NET Repository List
« Reply #7 on: July 16, 2019, 09:02:41 am »
And for developing that .NET is a pre-requisite. I'd been running Windoze without .NET until recently I was forced to get my hands on C#.

q.