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

Pages: [1] 2 3 4
1
Automation Interface, Add-Ins and Tools / Searching in scripts
« on: November 27, 2018, 02:28:09 am »
Is there any possibility how to globally search in all/selected scripts

2
Selecting the "Code engineering" menu on the table in a diagram contains several items including "Generate DDL". The same menu on the table in the project browser is almost identical, except for the "Generate DDL" item. Why? It would be natural to have both menus exactly same. I generate DDL for single table very often a why can't I do it directly in the project browser?

3
Automation Interface, Add-Ins and Tools / Repository.InvokeConstructPicker
« on: September 26, 2018, 12:20:23 am »
Is there a way how to distinguish between pressing Cancel and selecting <None> in this dialogue? It's obvious, EA is able to do it, but we aren't.

4
Automation Interface, Add-Ins and Tools / Re: How to compare objects
« on: September 17, 2018, 10:17:33 pm »
Thanks for your reply, now I understand. I already use comparison by PackageIDs, but I thought, it would be just a workaround. Now I see, it's final solution  :-)

5
Automation Interface, Add-Ins and Tools / Re: How to compare objects
« on: September 17, 2018, 08:18:57 pm »
Try something like this, just replace ELEMENT_1 and ELEMENT_2 by real elements lying in the same package:
Code: [Select]
Sub TestObj
Dim pcg1 As EA.Package
Dim pcg2 As EA.Package
Dim coll
Set coll = Repository.GetElementsByQuery("Simple","ELEMENT_1")
Set pcg1 = Repository.GetPackageByID(coll(0).PackageID)
Set coll = Repository.GetElementsByQuery("Simple","ELEMENT_2")
Set pcg2 = Repository.GetPackageByID(coll(0).PackageID)
session.output "pcg1: " & pcg1.Name & ", " & pcg1.PackageID
session.output "pcg2: " & pcg2.Name & ", " & pcg2.PackageID
If (pcg1 Is pcg2) Then
session.output "Packages match"
Else
    session.output "Packages don't match"
End If
If (pcg1.PackageID = pcg2.PackageID) Then
session.output "IDs match"
Else
    session.output "IDs don't match"
End If
End Sub

6
Automation Interface, Add-Ins and Tools / How to compare objects
« on: September 14, 2018, 10:03:16 pm »
I have two variables refencing packages and I want to check if they point to the same package. I'm sure they do. The test "p1.PackageID = p2.PackageID" is true, but the test "p1 Is p2" is false. Why?

7
Have you read my yesterday's post, where I described my scenario? For me, the result is ok - the moved tag is displayed under the new stereotype (ST_B) instead of the original stereotype (ST_A). And this was the purpose. So where is the problem?

8
No no, it is not to move the tag from one element to another but from one stereotype to another stereotype. And both stereotypes are present on all the tables in the model. So the tag will stay on all the tables too.

9
I don't understand, what I need a script for. Here is my scenario:
I have two stereotypes ST_A, ST_B, which are assigned to all tables. ST_A owns two  tags, TV1 and TV2. Now I edit profile and move TV2 from ST_A to ST_B. When I open the model, I see TV2 as a standalone tag (not under a stereotype but under the table class). After synchronizing the ST_B stereotype I see the TV2 under it. It retains it's original value, even non-default.
Do you see something that I missed and could be a issue?

10
Yes, I understand, but it would be nonsense to have a menu, with the only option About, for the add-in. For me it's definitely most natural to display the add-in version in the Manage add-ins window.

11
I'm not sure, what you mean with Context. Is it context menu? If it is, I can't imagine, where the About option would appear. Our add-in is a window for editing properties of tables. It replaces standard EA window, so it has no special option in the context menu, because it responds to standard Properties option or simply double-click.

12
And where does the menu appear?

13
We plan to relocate some tags. It looks, according to my tests, that it's enough to sync stereotypes and everything will be ok. Is there any other impact I should know bout?

14
It's bad :-( I'm looking for some place where to display add-in version.

15
Yeah, notes field of MDG, visible in the MDG Technologies window. I know it, but it's not what I'm asking about. I'm interesting in description of description of add-in (not MDG).

Pages: [1] 2 3 4