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 - Geert Bellekens

Pages: [1] 2 3 ... 531
General Board / Re: Corrupt model file
« on: March 17, 2018, 01:17:50 am »
try the option Repair .eap file.

in v14 at Configure | Model | Check Integrity | Manage .EAPX/.EAP file | Repair .EAPX/.EAP file


General Board / Re: HTML report for large diagrams
« on: March 16, 2018, 09:40:18 pm »
Setting aside that I too feel that large diagrams like that can only be used effectively as wallpaper; the html export generally creates pretty detailed diagram images that allow a lot of zooming.

There are a number of settings that you might want to experiment with.
See Preferences | Diagram | Image Memory Limit  for example.

If you search either the forum or StackOverflow I believe you should be able to find a few topics related to this as well.


No, I think that is about it for version 12.
Even if you somehow managed to manipulate the scrolling through windows clickevents, I don't think there's any way of knowing which part of the diagram is being shown.


We had a discussion about that on this forum a few weeks ago.
You should be able to find it using the search option.


General Board / Re: GetRelationSet
« on: March 16, 2018, 01:53:01 am »
No, I don't think I've ever used this operation before.

I'm pretty sure if you replace
Code: [Select]
set all = source.GetRelationSet(rsDependStart)by
Code: [Select]
all = source.GetRelationSet(rsDependStart)the error will go away.

You may only use the keyword set when dealing with objects. And this operation returns a string.


General Board / Re: GetRelationSet
« on: March 16, 2018, 12:54:21 am »
You have to use the enumeration value id.
In the script you are probably including: EAConstants-VBScript you'll find the following variables defined:

Code: [Select]
' =================================================================================================
' EnumRelationSetType
' See
' =================================================================================================
dim rsGeneralizeStart, rsGeneralizeEnd, rsRealizeStart, rsRealizeEnd, rsDependStart, rsDependEnd, _

rsGeneralizeStart = 0
rsGeneralizeEnd = 1
rsRealizeStart = 2
rsRealizeEnd = 3
rsDependStart = 4
rsDependEnd = 5
rsParents = 6

I'm not sure why you are getting the error. Maybe because you are trying to set a string value?
The correct use would be

Code: [Select]
!INC Local Scripts.EAConstants-VBScript

'..other code
test = myElement.GetRelationSet(rsDependStart)
'..other code

You can search github for examples:


General Board / Re: License Server questions
« on: March 15, 2018, 09:48:24 pm »
AFAIK you can install licenses on any license server independently.

So I would not expect any issues.


Uml Process / Re: {query} constrained operations
« on: March 15, 2018, 04:21:29 am »
You can select Is Query in the Modifiers (along with Pure, Const and others)


When used in an add-in, will it work with any version of EA or only with versions where the API supports this method?

No it won't, and you have to be careful not to call it on a version of EA that doesn't support it.
Even calling it conditionally in a property get can be a problem as (for some reason) it still somehow notices the operation is not available and throws an error.

Putting it in a separate method and testing the version of EA before actually using it works.


General Board / Re: Export Information Model with class attributes
« on: March 15, 2018, 03:19:48 am »
Yes, to csv. There is a button on the top right of the search window that allows exporting the results.


Why would it be a workaround?

You started from a template that reports everything. Feels pretty normal to have to filter it out to leave out some parts.

Personally I always start templates from scratch. That way I know exactly what is getting reported and what not.


General Board / Re: Export Information Model with class attributes
« on: March 15, 2018, 01:52:11 am »
You could use an SQL search similar to this:

Code: [Select]
select a.ea_guid AS CLASSGUID, 'Attribute' AS CLASSTYPE, o.Name as ClassName, a.Name as AttributeName, a.Type, a.Stereotype, a.Notes
, as PackageName , as Package_level1, as Package_level2 , as Package_level3
 from (((((t_attribute a
inner join t_object o on o.Object_ID = a.Object_ID)
inner join t_package package on package.Package_ID = o.Package_ID)
left join t_package package_p1 on package_p1.package_id = package.parent_id)
left join t_package package_p2 on package_p2.package_id = package_p1.parent_id)
left join t_package package_p3 on package_p3.package_id = package_p2.parent_id)
where o.Package_ID in (#Branch#)


A relatively new operation that has been add-in recently is

EA.Diagram.FindElementInDiagram (long ElementID)

From the help file:

Notes: This function activates the Diagram View and displays the diagram with the diagram object selected. If the diagram is too large to display all of it on the screen, the portion of the diagram containing the object is displayed with the object shown in the center of the screen. Diagram objects flagged as non-selected are shown but are not selected

Returns True if the diagram object was found, the diagram displayed and the object selected (or at least displayed) in the view. Returns False if the diagram object was not found in the diagram and the diagram not displayed.


ElementID: Long - the element ID of the diagram object to locate

I have not yet used it myself.

With regards to the selection of the connector. I think it already works the first time, but it is not yet visible because the focus is still somewhere else.
I've seen similar thing when selecting the connector from the EA Navigator.

In that case, if doing it twice solves the problem for you, I wouldn't worry too much. I've make far worse workarounds  ::)


General Board / Re: Export Information Model with class attributes
« on: March 15, 2018, 01:14:01 am »
The easiest way is to get the info into the search window and export it from there.

If you want something more automated you can use scripting create the csv file.


Then you'll have to update the your template to exclude those parts I guess.

You might be able to use the filters in the template properties to filter out these elements.


Pages: [1] 2 3 ... 531