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 - emiliano.davila

Pages: [1] 2
1
Automation Interface, Add-Ins and Tools / Insert in t_image
« on: November 03, 2023, 03:05:21 am »
Hello, I am trying to insert an image in EA through an addin, for what I was investigating it is not possible to insert it through api, so we only have the option of making an insert by DB.

Analyzing the table t_image I saw that in the field "image" places the image in base64 format. Then I tried to make an insert to this same table with my image in base64, but I find that when making the insert the database returns to make the conversion to base64, then what happens is that the original text of the image is converted to base64 again and when I want to open this image in EA gives an error, which is logical because the image is not the "original" but a new formatting of the same one.

Does anyone know how to make an insert to this table?
Or if there is any other method to insert an image in EA through an addin?

2
That worked, thank you very much for the help!

3
Hello everyone,
I have a question about the generation of instances of elements, is there any way to do it through the EA api?
I was reading the documentation and I can't find anything that helps me to do this.

I can simulate the creation of it by making inserts in the database with the fields that correspond to an instance and its relations, but is there a cleaner way to do this?

 To better understand my question, I am trying to replicate a behavior similar to the following:




4
General Board / Doubt with EA 16 cloning
« on: June 03, 2023, 12:28:14 am »
Doubt with EA 16 cloning
Hello everyone
I have a question regarding EA cloning.
 in version 15.2 when cloning as a new version I could manually choose the version of the item to clone.



But this behavior seems to have changed in version 16, where it is not possible to change this version, because the box is read-only.



Is this a desired behavior of EA? is it a bug? is there a setting that allows me to change it?

Note: the screenshots are with the Spanish EA, but I tried with the English versions and the behavior is repeated in 15.2 and 16.1.

5
Hi, we need to use the <search term> entered in the search window during the execution of a JS script. This works in a SQL query (query builder), but the same query doesn't work from a search script. Does anyone know if this is possible? I checked the Sparx Systems documentation and couldn't find anything about it.

I leave an example below

SELECT o.OBJECT_ID AS SERVER__ID,
                p.PACKAGE_ID AS SERVER__SALA
                FROM t_object AS o
                JOIN t_objectproperties AS op
                ON op.VALUE = '<Search Term>'
                JOIN t_package AS p
                ON p.PACKAGE_ID = o.PACKAGE_ID
                WHERE o.OBJECT_ID = op.OBJECT_ID

6
General Board / Missing items in the toolbox
« on: April 19, 2023, 01:39:33 am »
Hello.
Using enterprise architect for modeling we noticed that in one of the computers where I was installing there are missing elements in the toolbox, when in other computers with the same version (1625) if they exist, so we do not believe that it is an EA error.

The toolbox in question is UML: Component



Only 3 of the 7 elements are shown, while in other computers it looks like this.



Is there any option or something to hide elements? or is there any way to show all of them?

Regards!

7
Thank you very much for your answers, in the end we opted for another method to perform the same function.

8
Hello everyone.
We are developing an addin and we started using EA version 16.1, and with this version we noticed a change in the operation of a function of EA, specifically "GetElementByID()".
It turns out that in a specific case we have "ghost" elements that do not have a Package_ID, this is useful for the addin, but when we want to use the function GetElementByID() with an element without Package_ID we get the following error



We see that the ID does exist and belongs to the element that we are looking for but still gives error



Does anyone know if this is a change in the operation or is an error? because this same function (same addin) with previous versions works correctly.

9
General Board / Re: How do I change the units of measure for my document?
« on: November 08, 2022, 02:36:21 am »
Hi, you mean the size of the page?
In the EA text editor or when generating a report?

10
Thank you for your recommendations, they were very helpful!

11
Automation Interface, Add-Ins and Tools / Select DiagramObject in Diagram
« on: October 14, 2022, 02:07:17 am »
Hello everyone.
I am currently developing an addin and I want to know if there is any method or some other way to be able to select on the diagram (similar to find on diagram).



Best regards!

12
Automation Interface, Add-Ins and Tools / Re: Group elements
« on: August 08, 2022, 10:12:59 pm »
Thank you very much. All this information is very useful for us.
We will test and comment on the results.

13
Automation Interface, Add-Ins and Tools / Re: Group elements
« on: August 06, 2022, 01:34:29 am »
Thank you very much, we look forward to hearing from you.

14
Automation Interface, Add-Ins and Tools / Re: Group elements
« on: August 06, 2022, 01:10:12 am »
We want to replicate the "Group Elements" functionality in a diagram.


15
Automation Interface, Add-Ins and Tools / Group elements
« on: August 06, 2022, 12:51:14 am »
Hello,
We are trying to group elements using the EA API, but we have not succeeded in any way.
Is it possible to do this by API or by Database?

Best Regards.

Pages: [1] 2