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 - utilisateurEA

Pages: [1] 2 3 4
1
General Board / change default values
« on: April 02, 2010, 06:29:03 pm »
Hello,

Do you know if it is possible to change the default value of an operation ? For example the Scope or the Return Type ?
I tried to create a MDG technology with a metaclass and a stereotype but I couldn't change default values : I think this is designed to create customised objects but is it possible to set the default values of an operation for example?

Thank you

2
General Board / Re: parsing data
« on: August 24, 2010, 10:23:14 pm »
Hi,

Do you know how to use ClassifierID. I mean: first of all, in help, there are 2 kind of ClassifierID : Long type and String type.

In my case, it seems to be string type.
But then, I don't know what kind of object I can find with ClassifierID.
For exemple using Repository.GetElementbyID does not work because it requires an "int" and not a "string".

Do you know waht kind of element I have (there is not Repository.getClassifierbyID...)

thank you

3
General Board / Re: parsing data
« on: August 23, 2010, 10:38:39 pm »
Indeed I was confused with AttributeGUID... there is actually no link with attributes.

I'm going to try ClassifierGUID, thanks

4
General Board / parsing data
« on: August 23, 2010, 06:50:13 pm »
Hello,

I would like to write a C# script to find unused data.
I mean, I have parameters used in operations and data defined in another package. I would like to find data defined by not used in any operation.

My problem is that they have a different GUID :
- parameters used in operation are defined with parameterGUID
- data are defined with attributeGUID
I checked and it's not the same GUID.

I can find unused data with their name, but unfortunatly sometimes, several data has the same name (but are not contained in the same package).
And with Parameters there is no property like ParentID or something like this which could help me to differenciate parameters with the same name by a different path.

Do you have an idea of what I could do ?

Thank you

5
General Board / Generating tests
« on: August 03, 2010, 11:30:52 pm »
Hello,

Do you know if some methods/Add-ins have been developped to generate automatically test plans from model (probably using Uses Cases ?) ?

Thank you

6
General Board / Re: Insert bitmap in a RTF generated doc
« on: July 09, 2010, 07:30:24 pm »
Thanks, I didn't see this parameter

7
General Board / Insert bitmap in a RTF generated doc
« on: July 09, 2010, 05:28:25 pm »
Hello,

I generate (with RTF templates) documents with images of my diagrams.
I would like my images to be in bitmap format Do you know if it is possible with RTF templates ?

Thank you

8
General Board / Problem with parsing double elements
« on: June 22, 2010, 06:47:09 pm »
Hello,
I'd like to have a list of all "double" elements. I mean elements with the same name and the same type  (they should not exist, that's why I want to have a list to correct mistakes).

I have written this kind of code, but the result giving how many times an element appear is totally wrong, and I wonder if elements printed are really "double".
Could you give me your opinion about how I search them :

(at the beginning I have stored a list of the elements in Elem_in_table)
Code: [Select]
while (index_elem1 < numberOfElements) // we parse all the elements
{
  short i_element2 = 0;
  while (i_element2 < numberOfElements)
  {
     if (index_elem1 != index_elem2) // the parsing method could give several time the same element. We exclude this case.
     {
       if (Elem_in_table[index_elem1].Name.Equals(Elem_in_table [index_elem2].Name)) // 2 elements of the list has the same name
       {
          if (Elem_in_table [index_elem1].Type.Equals(Elem_in_table [index_elem2].Type)) // 2 elemnts has the same name AND the same type
          {
            (tab_nb_of_doubles[index_elem1])++;
          }
       }
     }
     index_elem2++;
  }
  index_elem1++;
}


9
General Board / Re: Parsing SubPackages
« on: June 15, 2010, 12:35:21 am »
Thanks,

But how do you use SQLQuery ?

I tried
 
while (stop == 0)
{
    try
    {
         DiagID[i_diag] = R.SQLQuery("select Diagram_ID from t_diagram");
          i_diag++;
    }
    catch
    {
           stop = 1;
     }
 }

But it doesn't seem to work

thanks

10
General Board / Parsing SubPackages
« on: June 14, 2010, 06:04:06 pm »
Hello,

I'd like to write a script parsing all the diagrams of my model.
For now I can only "read" the diagrams under the selected package with:

EA.Package curPk = R.GetTreeSelectedPackage();
foreach (EA.Diagram D in curPk.Diagrams)
...

Do you know how could say "all the diagrams of the model" or "all the diagrams of the selected package and associated sub-packages" (the result would be the same if I selected the top level package)

Thank you.

11
General Board / Blocking Manage Baseline options
« on: June 11, 2010, 06:42:51 pm »
Hello,

I'd like to use the manage baseline function on a project. But there is something I don't like: If you make a base line at a level (package 1 for example), and then open the "manage baseline" window from another level (package 1.1 for example) you can't see the previous baseline.

So I'd like to avaoir problems and give the permission to make a baseline only on the top package (and block this function for the other packages).
Do you think it is possible ?

Thank you

12
General Board / Re: Listing Elements of a diagram
« on: June 09, 2010, 05:13:38 pm »

By "all elements used in a diagram" I mean all the elements displayed on a diagram, like an interface, a port, an actor, a dependency,... anything which is displayed on my diagram.


.DiagramObjects doesn't fit to me because when I write my script, exactly when I write Diag.DiagramObjects. I have the choice between operations (like Delete, Equals, GetHashCode) but no property(except ObjectType). So I deduced it wasn't the right solution

13
General Board / Listing Elements of a diagram
« on: June 08, 2010, 11:55:00 pm »
Hello,

I would like to list all the elements used in a diagram with a script.
I tried EA.Diagram Diag and a Diag.DiagramObjects but it doesn't seem to be the right solution.
Do you know how I could list all the elements used in a diagram ?

Thank you

14
General Board / Detect Methods in a diagram
« on: June 02, 2010, 01:20:52 am »
Hello,

Is it possible to write a script which could display all the methods used in messages of a sequence diagram ? Indeed, I can't see any message in the project browser ??

Thanks

15
General Board / Re: Diagrams invisible in matrix View
« on: May 28, 2010, 01:31:41 am »
If the entire diagram is designed to follow a requirement, I won't link all the elements of the diagram, it's easier to read a link with the diagram, isn't it ?

Pages: [1] 2 3 4