Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Automation Interface, Add-Ins and Tools / Control EA via command line
« Last post by bergst on January 23, 2018, 09:03:54 pm »
Hi everybody,

is it possible to control enterpirse architect via command line and is there any documenation about this topic?

What i want to do:
I use a diagram script to generate a rtf-Report. We want to automate this step and have it done by jenkins every night. I think it would work with EA-Automation (like an external c#-code) but it would be nice if it would work with the already existing scripts of EA.

Thanks!
22
Bugs and Issues / User security: AD groups
« Last post by Uffe on January 23, 2018, 09:00:14 pm »
Hi,

Looking at the post-12.1 user security, it seems that I can specify a permissions group and link it to an AD group, but I cannot specify that all users belonging to an AD group should have access to the project. Nor can I tell EA to import all users belonging to a specific AD group.

Am I right?


/Uffe
23
General Board / Re: Display of elements on a diagram
« Last post by Nizam on January 23, 2018, 08:46:02 pm »
In most of the diagrams that I create (Such as a data model) I usually go into the properties of the diagram elements and turn off the display of element attributes and operations. In some cases I want to be able to create a diagram where this is the case, but on the same diagram I may want some of the elements to actually display its attributes.
Example:
Diagram A
     Element 1 - Do not display attributes or operations
     Element 2 - Do not display attributes or elelemts
     Element 3 - Display attributes
Have you considered creating custom diagrams (using an MDG) with these properties set by default? I've found that way to be really handy
24
Suggestions and Requests / Re: local user favourites or preferences
« Last post by Uffe on January 23, 2018, 08:32:47 pm »
Hello Saeed,


User security is definitely advisable in any situation where more than one person access the same EA project. To enable it, you must use a special key which is available from the "registered users" section of the Sparx web site.

After enabling security, you should also switch to "Require User Lock to Edit" mode. This means that before any changes can be made, the user must "lock" the package. While the package is locked, no one else can lock it but they can still see all contents. There are other modes of user security in EA, but for a beginner this is the one you want.

Note that locks must be released manually; they are not released automatically when closing the session. The project administrator can release other people's locks, but the GUI for that is pretty bad which makes it a needlessly complicated process.

When you enable security, you get one "admin" account with full privileges. You must then create or import accounts for other users. You can create them with local passwords, or import them from the Windows Active Directory.

Users belong to groups, which control the permissions available to them. These groups can also be synched to AD groups.

Note finally that the unit of access control in EA is the project. It is not possible to restrict access to certain packages: users' permissions apply to everything within a project.

HTH,


/Uffe
25
General Board / Creating parametric diagram
« Last post by DesperEAdo on January 23, 2018, 07:51:48 pm »
I would like to create a parametric diagram in order to calculate system perfomance indicators. In my example processing time. What I have done so far:

On a BDD I've created a block "Software" with a composition relationship to 3 subparts. Software owns a value property with the maximum processing time and each of the 3 subparts own a value property for the individual processing time. The block software has a composition relationship to 2 contraint blocks. One sums up the processing time the other checks if the maximum processing time is exeeded. Both contraint blocks own the contraint parameters and the contraint expression in OCL.

Now I want to create a parametric diagram by connecting the value properties from "Software" and it's subpart to the constraint properties. With the EA function "sychronize structural elements" it is possible to show up the constraints but without parameter ports. Unfortunately it is not possible to add the block's values to the parametric diagram.

Any idea how to proceed?

Bernd
26
General Board / Re: View indexes script
« Last post by Arshad on January 23, 2018, 05:05:08 pm »
Hi Rupert

So in your function you're iterating method collection through index.
This can be done even in elements and packages level too.

More sample scripting you can find in scripting tab.
Manage Attributes and Methods or Recursive Dump scripts
27
General Board / Re: Display of elements on a diagram
« Last post by Arshad on January 23, 2018, 03:11:21 pm »
Hi Jack

It can be done in two methods
  • Manually ( You can disable in diagram level and element level too )
  • Scripts ( You can disable in diagram level and element level too )

To Disable in Diagram Level ( Manually ) :
  • Goto Diagram Properties - > Elements Tab -> ShowCompartment sections
  • Goto Diagram Properties - > FeaturesTab -> Visible Class Members sections

To Disable in Element Level ( Manually ):
  • Right click on a element -> Features & Properties -> Feature & Compartment Visibility - > Attribute Visibility section
  • Right click on a element -> Features & Properties -> Feature & Compartment Visibility - > Attribute Visibility section -> Custom


To Disable through script :
For Diagram Level - Refer column Pdata in t_diagram table with attribute named HideAtts and also Attpub,AttPri,AttPro columns
For Element Level - Refer ObjectStyle column in t_diagramobjects  and StyleEx column in t_diagram

Regards
Arshad
28
General Board / Re: View indexes script
« Last post by rupertkiwi on January 23, 2018, 12:06:09 pm »
Found it.

The indexes for a view are kept in the Methods collection for an element:

'Dumps the indexes for an element
Sub DumpIndexes(indent, currentElement, thePackage, j As Integer)
    Dim currentPackage As EA.Package
    Set currentPackage = thePackage
    Dim methods As EA.Collection
    Set methods = currentElement.methods
        For i = 0 To methods.Count - 1
            Dim currentmethod As EA.Method
            Set currentmethod = methods.GetAt(i)
            outputws.Cells(j, 1) = thePackage.Name
            outputws.Cells(j, 2) = currentmethod.Name
            outputws.Cells(j, 3) = currentmethod.Type
            outputws.Cells(j, 4) = currentmethod.AttributeID
            outputws.Cells(j, 5) = currentmethod.Stereotype
            outputws.Cells(j, 6) = currentmethod.ParentID
            j = j + 1
        Next
End Sub

Thanks,
Rupert
29
General Board / Display of elements on a diagram
« Last post by JackDavid on January 23, 2018, 11:57:40 am »
In most of the diagrams that I create (Such as a data model) I usually go into the properties of the diagram elements and turn off the display of element attributes and operations. In some cases I want to be able to create a diagram where this is the case, but on the same diagram I may want some of the elements to actually display its attributes.
Example:
Diagram A
     Element 1 - Do not display attributes or operations
     Element 2 - Do not display attributes or elelemts
     Element 3 - Display attributes
30
Bugs and Issues / Re: TAM - Incorrect item cloned!
« Last post by Paolo F Cantoni on January 23, 2018, 11:05:38 am »
The initial response from Sparx is that they can't reproduce the problem.  No real surprise there.  They asked for a sample repository, which we're preparing.

In doing so, the problem seems to get "worse".  We exported the test branches and imported into a clean repository.  So, at this stage, one item was cloned to "RdMp" and the other 3 were cloned to "Past".  So, to check if the problem is still present in the "clean" repository, I go back to "Curr", clone structure as a new version to "Pst2".  The diagram (in "Pst2") shows all items from "Curr".  Select all items in the diagram, clone to new version "Pst2", the end result: 3 items from "Past" and 1 from "RdMp".  So it seems to get confused as to which is the master and which is the clone.

Paolo
Pages: 1 2 [3] 4 5 ... 10