Book a Demo

Author Topic: Open EA project with specific diagram  (Read 4332 times)

Krayol

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Open EA project with specific diagram
« on: March 16, 2010, 09:35:37 pm »
Hi,

We have a QA system that requires us to create hyperlinks/shortcuts directly to key documents (Requirement spec, Use cases, etc) from an external system.

I can set a single startup diagram for a project and I can create a shortcut to open it, but I can't determine the diagram that opens.  What I'd really like is to specify a command line, environment variable or similar that determines the "starting diagram", e.g.

 EA.exe /proj=Myproj.eap /open={395F9D9F-6B4B-475a-9801-820DA7C4497F}

...but I can't find any support of this type.  Perhaps the only way is to create some sort of add-in, but I'd prefer something that I didn't have to deploy to all users.

I could also split the different models apart and give each one it's own start diagram.  However, that would stop me tracing requirements through to implementation, etc.

Any ideas how I might accomplish this?  It seems like a simple thing to start a project with a specific view!

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Open EA project with specific diagram
« Reply #1 on: March 16, 2010, 10:29:56 pm »
Quote
Any ideas how I might accomplish this?  It seems like a simple thing to start a project with a specific view!
Just a very rough idea: You might be able to provide an EA AddIn to accomplish this behavior. The AddIn could examine the environment variables set and use the Repository.OpenDiagram() method to open a diagram that's somehow specified there (by GUID or whatever). The questionable point is if you find an appropriate EA-AddIn event, thats called only once when a project is (was) opened.

HTH
Günther

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Open EA project with specific diagram
« Reply #2 on: March 16, 2010, 10:40:18 pm »
I'm pretty sure you can save short cuts to projects with the action to open a particular diagram on startup.

If that's not ideal, there is a community based project called the ea:// protocol handler which is open source. See http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1257504312/  for more details
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Krayol

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Open EA project with specific diagram
« Reply #3 on: March 16, 2010, 10:50:24 pm »
I was already heading down that Add-in line of thought and learned a lot about add-ins in the process.  I may need do a bit of development there later.

However, Michael kindly pointed out what I had overlooked - I can create a shortcut that carries out a diagram open action from the "Save project as..." menu item.  This is just the simple solution that I was looking for!

Thanks guys!  :)
« Last Edit: March 16, 2010, 10:52:06 pm by Krayol »