Author Topic: Start EA with a special diagram  (Read 3174 times)

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Start EA with a special diagram
« on: June 29, 2005, 07:21:43 am »
Hello everybody,

did anybody know if it is possible to start EA with a specific diagram.

Example: I need on my desktop two links of an EA model. When I klick on the first one, diagram "A"should be opend. By klicking on the other link,  diagram "B" should be opend.

I don't know if this is possible, but would be nice.

Thanks for your help

bye
Andreas
bye
Andreas

thomaskilian

  • Guest
Re: Start EA with a special diagram
« Reply #1 on: June 29, 2005, 07:56:11 am »
Open the diagram; Diagram/Set as Model Default

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Start EA with a special diagram
« Reply #2 on: June 29, 2005, 11:43:19 pm »
Hi Thomas,

I know the "Set as Model Default" option, but in  this case it is not what I need.

I try to explain it a little bit more:
We describe our requiremenents outside of EA in an other tool. Inside this other tool we need a link to the EA diagram which describes the requirement.

Today we store a jpg of the diagram (created in EA) with the requirement. But this is annoying me, because creating this jpg needs time. puting it to the requirement needs time and if the diagram changes I have to do the same job again.

So what we need is somethin like a link in our requirements tool, which opens the EA model with the correct diagram for this requirement.

Any ideas how to solve this? May be, EA has some comand line parameters, or the automation interface is a solution?!

bye
Andreas
bye
Andreas

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Start EA with a special diagram
« Reply #3 on: June 30, 2005, 12:59:08 am »
It is certainly easy using the automation interface to get EA to open and display a particular diagram. How you interface this with your particular requirements tool is of course a different matter.

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Start EA with a special diagram
« Reply #4 on: June 30, 2005, 02:07:27 am »
I have absolutly no experiance with the automation interface and don't know how it works and what it do.

Therefore I simply ask: Do you think it's possible to create something, that it is possible to drag'n'drop a diagram to the desktop.
And by clicking this "diagram link" the model opens with showing this diagram? Since such links can be added to our tool, this is a good way to do it.

This would be the best solution, but may be there is an other way to get a similar result.
bye
Andreas

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Start EA with a special diagram
« Reply #5 on: June 30, 2005, 02:40:14 am »
Well the simplest way to start EA with a given diagram would be to allow a command-line parameter that specified the model name and diagram within the model.

However, since the repository-based models can take a password, you would have to enter that before you saw your diagram !

As for dragging a link, that would not be within the realms of Automation, although an Addin might be able to save a link to the Desktop - assuming the previous functionality was in place.

To create a 'link' using existing functionality, you would create a file (e.g. in Perl) that called on the Automation interface to open the model. This would just be a couple of lines of script, have a look in the Automation section of the forum.
« Last Edit: June 30, 2005, 02:44:41 am by mikewhit »

thomaskilian

  • Guest
Re: Start EA with a special diagram
« Reply #6 on: June 30, 2005, 04:11:35 am »
Once I place an "autodoc" perl command on the EAusergroup site. (Search here for the keyword "autodoc") This might help.

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Start EA with a special diagram
« Reply #7 on: July 26, 2005, 08:08:47 am »
Hi Thomas,

I think with some modifications this perl script will solve my problems. But I can't find a way to get the GUID of the current visible diagram.
The property window of EA shows no information whe I select a diagram in the project view.
Any ideas how to get the GUID of the current diagram (in best case with help of an other perl script).

bye
Andreas
bye
Andreas