Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Danny F

Pages: [1] 2 3 4
1
Hi stefan

I'm working for a software company which has around 250 analysts.
Some 100+ projects, in different stages of their life-cycle, all related to the same domain.

In time, we want all our analysts, to work with EA and we want them all to work is roughly the same way.

So ideally we want to offer them a customized (yet not restrictive) way of working with EA.

If possible we would like to customize  :
- the context menus
- the dialog boxes
- visual aspects (like the icons)
- ....




 



2
zuut :(

thanks for the replies.

Great things could be possible with EA but there are some annoying restrictions. :(
I think they need to make it more customization friendly

The tool is much too generic and 'all purpose' for my audience.

3
Hi

When the user modifies an element I need to change the icon in the project tree (behavior like in an programming IDE)

How to go about that - any pointers ?

thanks

4
I ran into the same problem

this is an actual line in my code  :D :
Code: [Select]
 // system crashes ! ev.Repository.ReloadDiagram(diag.DiagramID);



My work-around for it, using a static Context object in which I save the diagramGUID to be reloaded.
then on each EA_OnNotifyContextItemModified :
Code: [Select]

....
 if (ot == EA.ObjectType.otDiagram)
....
 if (Context.isDiagramSaveLoad(GUID))
 {
      Context.SaveLoadDiagram(GUID);
 }
....

Code: [Select]

internal static void  SaveLoadDiagram(String GUID)
        {
            EA.Diagram diag = Repository.GetDiagramByGuid(GUID);
            DiagramSaveLoad.Remove(GUID);
            Repository.SaveDiagram(diag.DiagramID);
            Repository.ReloadDiagram(diag.DiagramID);
        }


Especially useful in a EA_OnPredelete.... because the reload crashes EA each and every time.

Also not that not every action on a diagram triggers an EA_OnNotifyContextItemModified (or EA_OnNotifyContextItemChanged for that matter) with ot == diagram ! for example re-routing of a stateflow on a statechart.
And on the same subject, should you be in that case, know that when re-routing the client-end you get 1 EA_OnNotifyContextItemModified ot = otConnector      
notification, when you re-route the target-end you get 2 notifications.

gr



5
well, good new in a way : EA 10 does not have this problem

Don't have to lock anything explicitly


6
Geert, you've got me worried now  :o

for all the things I create via thee Add-in I only 'need' to lock the diagram explicitly. Not the elements, packages - they get locked automatically.
I lock the diagram via applyuserlock, and everything works 100%

However - I also 'need' to release the lock (only on the diagram) because the user can not release it ??

So in fact 2 questions :
- why do I need to lock the diagram and nothing else
- why can't the user unlock the diagram (that has been locked 'in his name' by the add-in)


gr

7
Thanks Qwerty

I understand (and that's how I implement it now) but there is a bit of a discrepancy.

The Add-in creates packages, elements, connectors and diagrams.
After that everything (except diagrams) is automatically locked for and available to the user (that triggered the add-in action) except again for the diagrams

So his (the user) question is : why do you want me (the user) to lock the diagrams separately ?

And still remains the related question : if the add-in does the applyuserlock() - why can't the user unlock the diagram ?


gr


8
Hi

given : EA 9.3 using DBMS repository with required edit lock

when my add-in creates elements, they get automatically locked

except for diagrams ?

When I use diagram.ApplyUserLock() add-in related things (rename diagram for example) work

BUT : user cannot unlock the diagram  ??
So it stays locked indefinitely
(until an administrator steps in I would imagine)

We're all EA newbies here, so my first question is : should this work ?  
have we missed a configuration setting ?

thnx for any insight - help - solution










9
How does an add-in gets triggered when a pattern is dropped on a diagram ?

When I drop for example a GOF Pattern on a diagram I don't get an EA_On..... event called.
NONE ?

thanks in advance (again  :D )

10
Quote
have you tried just calling update on the element and leave it at that?

 :-[ :-[ No - why not, I don't know .......

It works  - soooo simple - thanks a million


11
Thanks Paulus

I set the color on the element, not on the DiagramObject.
There are in fact potentially a lot of nodes that need to change color when one connector is changed. And I wanted to avoid having to do the loops.

But maybe there lays my mistake ?

12
Automation Interface, Add-Ins and Tools / reloaddiagram - system crash
« on: March 13, 2013, 09:24:09 pm »
     hi

the requirement :
- 2 states on a statechart diagram.
- when the user connects, disconnects or re-routes a connection between these to diagramobjects, the diagramobject changes color.

Solution (mine) :
- on a 'connect' action do a :
           Repository.SaveDiagram
           Repository.ReloadDiagram

For newly created connections and a delete of a connector this works.

When re-routing a connector (to a third state object) the system crashes.

this happens under EA 9.3 and EA 10.0
(Windows reports that they searching for a solutions but I don't really have a lot of faith in that  ;D )

a few more details for those who would want to investigate this ;)

For a new connection : the saveload is done in the EA_OnPostNew Connector

For a delete of a connection there is a trick to it :
The saveload is done in the EA_OnNotifyContextItemChanged on the diagram, which follows the delete action

For a re-route :
- saveload in the EA_OnNotifyContextItemModified : Crash

- the same trick as for delete doesn't work, because there is no EA_OnNotifyContextItemModified on the diagram following the re- routing  


Anybody any ideas ?

Many thanks in advance.








13
Hi, me again  :-[

how to NOT display the override operation dialog when creating a generalization

first : I know about the tools/option setting

But : Even if the option is checked I want to suppress the dialog !!

how ??

Repository.SuppressEADialogs in EA_OnPostNewConnector doesn't  seem to work
(neither calling it in the EA_OnPreNewConnector for that matter)

thanks again

14
Thanks Paulus, but that is exactly what I'm doing now  8-)

Problem is, my profile provider wants me to use the profile.
(So that later, if he adds to the profile it gets reflected automatically)

so my problem remains  :(

15
Hi

I have a problem applying a profile defined connector via the add-in

This is the profile snippet

Code: [Select]
<Stereotype name="BusinessEventTransition" metatype="BusinessEventTransition" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
      <AppliesTo>
             <Apply type="StateFlow">
                  <Property name="direction" value="Source -&gt; Destination"/>
                  <Property name="kind" value=""/>
            </Apply>
      </AppliesTo>
</Stereotype>

this is the add-in code :
Code: [Select]
EA.Connector newStateFlow = Initial.Connectors.AddNew("", "BIMProfile::BusinessEventTransition");
However the connector created hash metatype="Dependency" and type = "dependency"

what am I doing wrong ?


BTW I've got this technique working on an EA.Element of type 'State'

As always big thanks





Pages: [1] 2 3 4