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 5
16
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?

17
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.

18
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.

19
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?

20
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


21
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

22
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.

23
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...

24
General Board / Re: Import XMI as model pattern
« on: December 16, 2016, 07:52:05 pm »
So if I add these attributes to an mdg file it wont't work in 12.1?

25
General Board / Re: Import XMI as model pattern
« on: December 16, 2016, 06:04:16 am »
When I add a model pattern it appears default under "Other" in the list under "Technology". But can you manage the different categories in that list?
For example, creating a new category and add your created patterns to that new category?

Thanks,

26
Bugs and Issues / Re: MDG Technology Import not available
« on: December 16, 2016, 05:25:09 am »
Thanks again Geert

27
Bugs and Issues / MDG Technology Import not available
« on: December 16, 2016, 03:40:09 am »
I've just installed EA 12.1, but when I want to import an MDG technology and I navigate to the 'Project' menu, the "MDG Technology Import" option (and some other) are not visible. How can i solve this issue?

Thanks

28
General Board / Import XMI as model pattern
« on: December 16, 2016, 12:59:59 am »
Has EA the possibility to import XMI files that can be used as model patterns in the model wizard?

29
General Board / Re: Attribute and type with the same name
« on: December 14, 2016, 05:00:46 pm »
Can't seem to be able to reproduce it on version 12.1.1230 either.
I guess it has been fixed.

Matthias, which version are you using?

Geert

I'm using 12.0.1215, but I will try it on 12.1.

30
General Board / Re: Attribute and type with the same name
« on: December 13, 2016, 09:26:12 pm »
But why does it work in that tutorial? Is it because they used an older version?

Pages: 1 [2] 3 4 5