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

Pages: [1]
1
Dear friends, I have experience in developing plugins on ea, but I wanted to ask about a matter. Do you know if the API of ea provides a method to copy / paste (i.e. clone) an element or a package (recursively)?

If you use the user interface, you can find this option in the menu, But I do not find nothing in the API about this topic.

Thank you

2
General Board / how to disable the spelling checker  EA 8.0?
« on: May 20, 2010, 04:58:06 am »
hello,

Do you know  how to disable the spelling checker  EA 8.0?

Thank y ou  :).

3
General Board / traceability matrix & RTF templates
« on: August 19, 2009, 07:09:56 pm »
      
Does anyone know how to add a traceability matrix in a report, using RTF templates?

thanks :)

4
General Board / Re: RTF Templates: help!
« on: August 14, 2009, 08:34:27 pm »
      
I found the solution by using the section:

external requirements >
•      {ElemExtRequirement.Name}
< external requirements

 ;D ;D ;D ;D :D :D :D

5
General Board / RTF Templates: help!
« on: August 12, 2009, 08:12:03 pm »
Hello everyone,

I need your help. I can't do a thing. I have the following (RA-01.AGRUPACION1 element) :



I need to make a template that returns this:

OBJ-09.Ges...
OBJ-08.Gesti...
OBJ-05.Inte...
OBJ-04.Inter...
OBJ-03.Gestió...
OBJ-02.Nave...

I am using the following code in the template:

connector >
target >
element >
{Element.Name}
< element
< target
< connector


Moreover, in "options document" I have excluded all connector types except "realisation". however, to apply the template I get:

RA-01.AGRUPACION1
OBJ-09.Ges...
OBJ-08.Gest...
OBJ-05.Inte...
OBJ-04.Interacc...
OBJ-03.Gest...
OBJ-02.Naveg...

Because do you know the name of the RA-01.AGRUPACION1 element? What am I doing wrong?

Thanks in advance.    :)

6
General Board / Re: Questions about RTF reports
« on: July 26, 2009, 08:34:29 pm »
      
thanks for answering

Quote
1) What do you mean by"figures"?

I meant how to create an index of the diagrams of my project EA. Something like a list of chapters, but diagrams.

Is there any way to do this?

Quote
2) not possible (AFAIK), sorry

RTF capabilities in EA are good enough for most things, but some times they miss that anoying bit you need...

      
  Thanks for the information.

However, in the link:

http://www.sparxsystems.com.ar/download/DocExample.zip

Rtf file included in the zip appears:

"Connections

§ Used by actor Customer. A customer uses the login use case to access the book store
§ Extends link from USEC Register with Book Shop. The Register Login use case extends the use case in situations where the user does not have an account with the book store. Once registered they may complete the login use case
Section 1.01 Realization requirement to link to the website Log on
§ Realization component link from Business Logic
§ Realization link component from ASP Pages
§ Realization link from login screen "


As can be seen, there is a filter on the connections.

Depending on the type of element that is connected, you type a text or another.

What do you think?


Un saludo, le deseo un buen día también  :)

7
General Board / Questions about RTF reports
« on: July 23, 2009, 07:03:48 pm »
      
Hello all,
 
I am a new EA user and need your know-how to solve a couple of  questions I have, both related to the creation of templates for generating RTF reports.

1. How can I create "table of figures"?.

2. For other hand, I need for each requirement appears in the report only one type of element which is connected.

For example, suppose that the elements A1, A2, C3, S1, S2, A3 are connected with the requirement R.
Then,

package>
 
element>
Element.Name ()

connector>
source>
element>
SOURCE: () Element.Name
<Element
<Source
<Connector

<Child packages
<Package


Then, the previous piece of a template provides:

R

SOURCE: A1
SOURCE: A2
SOURCE: C3
SOURCE: S1
SOURCE: S2
SOURCE: A3

However, what I need is:

R

SOURCE: A1
SOURCE: A2
SOURCE: A3

Is there any way to make a filter connector section to get what I want?



Thanks for everything.  :D

A greeting from Spain.

8
Hi, I'm trying to design HTML templates to generate my documentation, but I have a problem.

EA provides an HTML editor too small to work comfortably. Do you know how to make it bigger? I do not want to have to be copying and pasting the code between this editor and a different tool ...



Uploaded with ImageShack.us

9
Quote
It's showing because your element has more than one stereotype, but the second on are truncated.

You're right. My test is simple:

paquete = repositorio.GetPackageByID(267);

elemento = paquete.GetElements().AddNew("name", "Interface");

elemento.SetStereotype("my_stereotype");
elemento.Update();

And it appears this in the Proyect Browser:




But you know how to remove the second stereotype?

Thank you.

10
Hello everyone,

When I create an element of type Interface using the API methods, and then look in the Project Browser of my EA project, the element stereotype thath I created earlier appears with a strange format:

<<my_stereotype...>> name_element

However I have noted throughout the database that the field stereotype has my_stereotype

Do you know that happens? How I can avoid those "..."?

11
great! just what I needed  :D.

thank you very much everybody.

12
Quote
hello iwt2,
did u try :
Code: [Select]
Repository.GetPackageByID(YourElement.PackageID) ;
?


      
that's not what I need. This instruction returns the package where the element is.

As you know, when you create a package, EA generates two records: one at the t_object table  and  other  at the t_package table. both are related through the field  PDATA1 of  the t_object table.
 

I need to find the package (Table t_package) from element (table t_objec) using the API methods.

other  idea?

13
Automation Interface, Add-Ins and Tools / Any idea to do this directly?
« on: August 04, 2010, 12:04:25 am »
Hello everyone,

I have a question:

From a Package object (a row of t_package table) I can find the Element object (a row of  t_object table) associated.

But from an Element object, can I find directly the object associated Package? A database level know how to find it: if the element is of type package, I have only to look at the field PDATA1 to know the id of the associated package (Table t_package). But I need to do it with the methods of the api.

Any idea to do it directly?

Thank you very much.

14
Thanks for your response.

Finally I solved the problem by combining the methods GetElementsByQuery and AddDefinedSearches  :)

15
Hello,

I need some help. I am using API EA 8.0 to make a Java application.

Previously, I accessed the eap file using jdbc and SQL querys. the problem is that I don't know  how to do some query "complex" using the API methods. Also, I do not want to use SQL query.

For example, the query:

SELECT * FROM t_object Where Stereotype like  'xxx' AND object_type like 'class';

How I can get the elements t_object using only the methods of the API?

Thank you very muchjunto

Pages: [1]