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.


Topics - MatthiasVDE

Pages: [1] 2
1
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?

2
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

3
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,

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

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

6
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

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

8
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

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

10
General Board / Attribute and type with the same name
« on: December 13, 2016, 09:18:59 pm »
In this tutorial I read the following:

Quote
In our case we needed an URL NameSpace tag on our WSPackage. To do so I added a Tagged Value type called “namespace” and in the “Detail:” field we added the text “Type=URL;”. Now we have defined the Tagged Value type and it is ready to be used in our element. To do so add an Attribute with the same name as the Tagged Value, and type the name of the Tagged Value type in the “Type:” field. In our case an Attribute named “namespace” with the Type “namespace”.

So...

If I add an attribute to an element with the name "namespace", and I choose as type also "namespace", I get the following error message:

Quote
Attribute with that name already exists

11
General Board / Error while importing MDG file
« on: December 08, 2016, 10:10:26 pm »
Hello,

I'm using Enterprise Architect 12 Corporate Edition and I receive the following erorr when I import an MDG file that is probably created in EA 12.1:

"The current version of EA only supports ID's up to 12 characters in length. Please shorten the ID field in the profile and retry".

It looks evident for me that I just need to shorten the ID, but where in the xml file can I find the right ID field?

Thanks,

12
General Board / Link labels and text fields to class diagram attributes
« on: December 06, 2016, 07:50:44 pm »
I'm creating a wireframe in Enterprise Architect with fields and labels. I've also created a class diagram with different classes and attributes.
My question now is if it's possible to link the text fields and the labels on the wireframe to specific attributes in the classes?

For example:

The field or label "Company name" on the wireframe needs a link to the attribute 'name' in the class 'Company'.
This is very handy for the developpers to know in wich object/attribute they need to save the information from the fiels, or to get the information from to show in a label.

Thanks!

13
General Board / Copy and past single element
« on: November 17, 2016, 10:13:26 pm »
When I select and copy a single element on a diagram to paste it as an image in a Word document, a diagram frame will always appear when I paste it to the document.
But I want to paste only the element, not the frame, is this possible?

14
Automation Interface, Add-Ins and Tools / C# + Scheduled Task= Error
« on: October 13, 2016, 01:34:15 am »
I wrote a C# application for exporting html reports. When I run the .exe manually it works fine, but when it starts from a scheduled task I get the following error:
The remote procedure call failed. (Exception from HRESULT: 0x800706BE)


EA.Repository repo = new EA.Repository();
repo.OpenFile(conn);  --> The error is on this line.

15
I have a data modeling diagram with several tables and much much much attributes.
All the attributes (names, types, lenght, ...) are available in  a csv file.

Can I import them to a specific table directly from the csv file?

Pages: [1] 2