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

Pages: [1] 2 3 4
1
General Board / Re: Associations & the Schema Composer
« on: May 12, 2017, 03:17:29 am »
Thanks Geert!

2
Automation Interface, Add-Ins and Tools / Re: JSON Importer?
« on: May 11, 2017, 11:59:40 pm »
Paolo, what's the status about this?

I'm dealing with the same problem  :)

3
General Board / Associations & the Schema Composer
« on: May 11, 2017, 11:58:08 pm »
I create e schema in EA13 and add some classes without to that schema, logically there are no associations visible in the schema composer.
But now, when I add the associations afterwards to my class diagram, the associations are still not visible in the schema composer. Next step, I remove the classes from my schema composer and add them again in the hope that the associations will be visible, unfortunately still no associations visible in the schema composer.

What next? I create a new schema and add my classes, now, the associations are visible.

Is it normal that you need to create a new schema to get some changes on your class diagram visible in the schema composer?

4
Hi,

yesterday I tried it with C# and EA 13 to change the diagram page orientation from P to L and vice versa.

It worked.

Kind regards,

Helmut

I'm working with 12.1, maybe that's the reason?

5
The following code creates a class diagram under the BIGroup element, this part works. But when I try to set the orientation of that class diagriam to landscape, it seems not working. When I debug it by showing a message box with the orientation, he gives me an 'L'.
Code: [Select]
function EA_OnPostNewElement(Info)
    dim elementID
    elementID = Info.Get("ElementID")
dim BIGroup
set BIGroup = Repository.GetElementByID(elementID)
dim classDiagram 'as EA.Diagram
set classDiagram = BIGroup.Diagrams.AddNew("LDM-BI Entities Overview", "Class")
classDiagram.Orientation = "L"
classDiagram.Update()
BIGroup.Diagrams.Refresh()
end function

6
It works, thanks!

7
Which Broadcast Event occurs when an attribute is dragged from the project browser to an element (f.e. a class)? I tried with the EA_OnPostNewAttribute(Repository, Info) event but no results...

Thanks,

8
Ehrm, no. The direction is stored in t_connector.direction

Not the connector direction. The label direction indicator.
On the label of a connector you can choose the direction so that a litle black arrow appears.

That's in t_diagramlinks.Geometry / DiagramLinks.Geometry, which is a complex property consisting of semicolon-separated property=value pairs. One of these properties is called LMT. LMT is in turn a colon-separated list of subproperty=value pairs, and the subproperty we're after is DIR:
0 for No indicator;
1 for To Destination;
-1 for To Source.

Here's a sample geometry for a connector with a To Source label direction:
Code: (t_diagramlinks.Geometry) [Select]
SX=1;SY=9;EX=1;EY=9;EDGE=2;$LLB=;LLT=;LMT=CX=25:CY=13:OX=0:OY=0:HDN=0:BLD=0:ITA=0:UND=0:CLR=-1:ALN=0:DIR=-1:ROT=0;LMB=;LRT=;LRB=;IRHS=;ILHS=;
/Uffe

Thanks!

What's the relation between t_connector and t_diagramlinks?

9
On the label of a connector you can choose the direction so that a litle black arrow appears. Now I want to query that value, but I can't find  that value in the DB.

10
Automation Interface, Add-Ins and Tools / Re: Hide stereotype notation
« on: March 31, 2017, 07:40:42 pm »
I added the string attribute pdata with default value HideEStereo=1;HideStereo=1; to my diagram metaclass, it works for the elements, no stereotype is visible. But for the attributes the stereotype still appears.

11
Automation Interface, Add-Ins and Tools / Hide stereotype notation
« on: March 25, 2017, 01:44:29 am »
When you create an mdg with uml profiles, and you don't use shapescripts, how can you prevent that the stereotype appears on your diagram?

12
I found it:

Code: [Select]
'returns an ArrayList without duplicates
function removeDuplicates(arraylist)
dim result
set result = CreateObject("System.Collections.ArrayList")
dim element as EA.Element
for each element in arrayList
dim b
b = contains(result, element)
if b = false then
result.add(element)
end if
next
set removeDuplicates = result
end function


'returns boolean
function contains(result, element)
contains = false
dim res as EA.Element
for each res in result
if res.ElementID = element.ElementID then
contains = true
exit for
end if
next
end function


13
Is it possible to remove duplicate elements from an arraylist?
I tried with some functions but no success.

Code: [Select]
'returns an ArrayList without duplicates
function removeDuplicates(arraylist)

dim result
set result = CreateObject("System.Collections.ArrayList")

dim element as EA.Element
for each element in arrayList
dim b
b = contains(arraylist, element)

'if contains then
'
'else
'
'end if


next
set removeDuplicates = result
end function


Code: [Select]
'returns boolean
function contains(arraylist, element)
set contains = false
dim res as EA.Element
for each res in arrayList
if res.ElementID = element.ElementID then
set contains = true
exit for
end if
next


end function

14
Automation Interface, Add-Ins and Tools / Re: Model Search Group
« on: January 03, 2017, 11:40:52 pm »
Thanks Geert, but at first sight there isn't any difference with the search group scripts, both are listed in the model search window.

15
Automation Interface, Add-Ins and Tools / Model Search Group
« on: January 03, 2017, 09:06:20 pm »
What's the purpose of scripts that are created in the Model Search Group? I can't find any explanation about this script group...

Pages: [1] 2 3 4