enterprise-architect

Enterprise architect: Order of entry/exit functions in states

China☆狼群 提交于 2019-12-10 18:34:01
问题 In my state machine, I have a state with several entry and exit functions. Enterprise Architect sorts them alphabetically, which can lead to something like this: entry / a exit / b entry / c The entry and exit functions are what EA calls "element operations". Question: How can I change the order of these operations? Ideally, I'd like to be able to order them in any way; if that is not possible, I'd like to have all the entry functions before the exit functions. What I tried: In the

How to move exisiting elements between packages with an EA Addin in c#?

為{幸葍}努か 提交于 2019-12-10 14:43:15
问题 I am working on an EA Addin in c# (thanks Geert) and would like to move exisiting elements from a package to another using the code. It is clear how to add or delete elements to/from EA.Collection p.Elements, but this does not work sincethis procedure changes the GUID of the element. Is it possible at all? 回答1: Yes. You simply need to change the packageId property to be that of the new package and you're done. Don't forget the update() after you changed it. Additionally you can change the

In which format do I have to pass arguments to Project.ImportDirectory(…)?

拜拜、爱过 提交于 2019-12-08 21:56:06
问题 I have managed to open my EA project via the automation API, but don't know the right format in which to pass the arguments to the ImportDirectory(…) method: var repo = new EA.RepositoryClass(); repo.OpenFile("some.eap"); var proj = repo.GetProjectInterface(); string language = "..."; // what to put here for C#? string extraoptions = "..."; // what to put here for my option (see below) proj.ImportDirectory("{C5007706-B7DA-4ACC-9123-F934F9B60305}", language, "C:\somedir", extraoptions); When

How to identify from where the contextItemDoubleClick event triggers

血红的双手。 提交于 2019-12-08 04:57:05
问题 I want to identify from where the ContextItemDoubleClick event is triggering in enterprise architect . (For eg) if i double click on a project browser in EA i need to identify it was triggered from project browser , because now ContextItemDoubleClick is triggering whenever user doubleclicks inside EA . Is it possible to identify that it triggers from project browser or open diagram or diagram object ? 回答1: No, you can't. At least not from EA: This event occurs when a user has double-clicked

How to identify from where the contextItemDoubleClick event triggers

徘徊边缘 提交于 2019-12-08 04:12:24
I want to identify from where the ContextItemDoubleClick event is triggering in enterprise architect . (For eg) if i double click on a project browser in EA i need to identify it was triggered from project browser , because now ContextItemDoubleClick is triggering whenever user doubleclicks inside EA . Is it possible to identify that it triggers from project browser or open diagram or diagram object ? No, you can't. At least not from EA: This event occurs when a user has double-clicked (or pressed the Enter key) on the item in context, either in a diagram, in the Project Browser or in a custom

Import requirements from CSV file

ぃ、小莉子 提交于 2019-12-07 15:02:02
问题 During import requirements from csv file I have a message: Bad object type when creating new record of type '' File I was trying to import: GUID$Name$Notes$Scope {BF467CF6-FF97-4dd4-894C-3F09E713678C}$NameOfReq$description$Public {71B26F9A-5418-499e-B635-F2DB158D3FF1}$Requirement1$$Public {0}$Requir1$blah$Public First 2 (+header) lines becomes from existing requirements and there is no problem with import. Last line should create a new object of requirement in enterprise architect, but there

Enterprise Architect project programming language

自闭症网瘾萝莉.ら 提交于 2019-12-07 01:23:05
问题 In Enterprise Architect when I model a class and specify the implementation language of the class, then use an instance of the class in a use case, the implementation language of the instance in the use case is not the implementation language of the class, but is the default. Is there a way to make Enterprise Architect use the set implementation language of the class for the implementation language of all instances of that class? 回答1: There isn't an option to make instances follow the class

Enterprise Architect 8 > Displaying Inheritance Chain for a Class

和自甴很熟 提交于 2019-12-06 13:01:03
问题 I have imported a PHP source folder into Enterprise Architect. Now, I'd like to see the inheritance chain of any specific class. In other words, I'd like to see one big diagram displaying all relations of a class. Most classes are in folders separate from the parent/child class. How can I do that..? This was my reason for installing Enterprise Architect: I get confused within a lengthy and branched inheritance chain. It would be very disappointing if such a powerful tool that recognizes all

Import requirements from CSV file

强颜欢笑 提交于 2019-12-06 02:30:17
During import requirements from csv file I have a message: Bad object type when creating new record of type '' File I was trying to import: GUID$Name$Notes$Scope {BF467CF6-FF97-4dd4-894C-3F09E713678C}$NameOfReq$description$Public {71B26F9A-5418-499e-B635-F2DB158D3FF1}$Requirement1$$Public {0}$Requir1$blah$Public First 2 (+header) lines becomes from existing requirements and there is no problem with import. Last line should create a new object of requirement in enterprise architect, but there is a message mentioned above. Any solution? How should proper file to create (import from csv file) a

Enterprise Architect scripting with java - add CustomProperty

孤人 提交于 2019-12-05 20:41:48
I want to add a legend to my activity diagram, which will be generate programatically by java and the ea-api. I already know how to create the legend element and show it in the diagram (Type: "Text" und Subtype: 76): Element legend = elements.AddNew("Color Legend", "Text"); elements.Refresh(); legend.SetSubtype(76); legend.Update(); //Show in diagram DiagramObject diagramObject = diagramObjects.AddNew("l=0; r=100; t=0; b=-100;", ""); diagramObjects.Refresh(); // reference the DiagramObject to the before created element diagramObject.SetElementID(legend.GetElementID()); But this is only an