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

Pages: 1 [2] 3 4 ... 19
16
Hi,

Is there an EA project or a diagram export of all class diagrams matching EA API Object Model e.g. Repository, Element, Package, etc class with properties and methods as documented in EA user guide e.g. Repository + methods like GetAttributeByGuid, Get ElementByGuid, etc.?

At the moment I only need it for presentation purposes but it would be useful to have it as a reference guide.
Perhaps a UML model already exists at Sparx to maintain the API (it could be included in the Example project.)

Note that I managed to generate a model via a Reverse Engineering on the InteropEA dll file. It is a good start, yet it would be useful to have some links from properties like Repository.Elements to the type of the collection's objects e.g. ElementClass, and perhaps definitions copied from the user guide.

thanks

17
Hi,

I'm trying to find a way to run a script that will itself call the last script used.
Let's say that in the Package scripts, you have
- RunLast
- ScriptA
- ScriptB

If I run ScriptA, it will store this ref somewhere in EA.
Calling RunLast will retrieve the ref and run ScriptA...

The following does not seem to be feasible:
- have a dynamic include (!INC) on the script found from the ref
- call this script main function (e.g. OnProjectBrowserScript) when the group and script names are set as variables e.g. groupName.scriptName OnProjectBrowserScript

Do you know if there is a solution to achieve that?

Note: I thought of an option that would involve the following:
- rename each script's main function e.g. OnProjectBrowserScriptA, OnProjectBrowserScriptB, OnProjectBrowserScriptC
- include all scripts in the RunLast Script : !INC GroupA.ScriptA, : !INC GroupA.ScriptB, etc
- add a switch case in RunLast script that will call the function matching the ref e.g. ScriptA -> call OnProjectBrowserScriptA
-> unfortunately this doesn't work either since all my scripts have an option explicit which generates an error




18
Hi,

In a VbScript, I set a local variable with the content from t_objectproperties.notes which I get by calling Repository.SQLQuery(SQL).
The script works well with a DBMS but not with an EAP: I figured out that the returned value is truncated after 255 chars.

Is this a known issue with EAP? Is there a workaround?

thanks

19
Suggestions and Requests / Find Attribute type in Project Browser
« on: May 02, 2018, 06:56:53 pm »
It would be nice to have a Find Type in Project Browser for class attributes from a diagram or project browser to select the matching type in the browser.

20
Hi,

To improve usability in a future release of my add-in, I sometimes close an add-in popup window (C# form) to open another one.
So I have a class that runs Close() and Dispose() on the initial form object before creating another form (typically I open form1 from EA, form1 opens settingsform, and when settingsform is closed, the add-in determines that form1 needs to be closed and replaced with form2).
It works well, except that EA main screen/window sometimes gets hidden behind another application e.g. my web browser.

I tried to run repository.ShowWindow(1); but it doesn't do anything (BTW EA help doesn't say what value needs to be provided in ShowWindow to display or hide... even though I assume it's 1 & 0).

 

21
General Board / Reverse DB result: views dependencies & Parents tag
« on: April 27, 2018, 01:48:45 am »
Hi,

I ran a DB Reverse on a SQL Server that has tables and views.
I'm interested in the link between views and the data sources i.e. tables ; I understand this is stored in the parents tagged value with a comma-separated list of table names.

I couldn't find in the user guide what the dependency links from Views to Tables mean. Anyone has an idea?
Ideally I'd like to have links from views to the table sources which I can get via a script.


22
Bugs and Issues / SQL Server Reverse on views: truncated definition
« on: April 20, 2018, 11:19:28 pm »
Hi,

I got the result of an EA reverse engineering run on a SQL Server DB that contains views. When the view definition (query) is longer than 4000 characters, the resulting definition in EA (viewdef tag memo) is truncated at this position.
I found a post on this issue here: http://www.sparxsystems.com/forums/smf/index.php/topic,10962.msg148710/topicseen.html#msg148710

Is there a way to resolve this in SQL Server, ODBC configuration or else?

Thanks

23
It would be useful to add to the "Insert Related Elements" Connector types and Element types, a filter on Stereotypes e.g. to select "ABC" stereotyped classes that are associated with the current element.
It would also make sense to include the Stereotype on the Field chooser.


24
Automation Interface, Add-Ins and Tools / Script editor improvements
« on: April 11, 2018, 05:53:22 pm »
EA scripting editor works nicely (I use VBScript), yet a few enhancements would be nice to reach other scripting tools.
- Provide a collapse/expand commands (+/-)  on functions and routines
- Drop down list of functions and routines (as it's done when opening source code)

Could this be added in a future EA build?

25
Bugs and Issues / Python reverse - empty result
« on: March 19, 2018, 07:13:41 pm »
Hi,

I received a python source code from a client to run the reverse eng. in EA.
EA processes all .py files without producing any result/class.

The Python code has :
- import declarations
- def (e.g. def functionA(arg1, arg2) : ...)

Is there any precondition to check so it works?

Thanks

26
General Board / EA 14 beta comments & feedback
« on: March 08, 2018, 12:39:56 am »
Hi,

Starting a thread on posting feedback about EA 14 beta if that's ok.
I used BPMN and noticed that the "Convert to..." option is no longer available: I created BPMN Service tasks and would like to change the type e.g. to User.
With previous versions, using the toolbox and adding the same type of element onto an existing one prompted to either create or change the type. This was a rather nice hint for users.

Can it be maintained in EA14?

I found a glitch on the quicklinker: I cannot create a Data Object from a BPMN task via a data association.


27
Hi,

Is it possible to let a user assign keyboard shortcuts (e.g. F1, Maj+F1...) with an installed add-in menu/feature?

Thanks

28
Hi,

I'm trying to apply auto updates on a SysML IBD diagram when running the Synchronize Structural Elements, where EA creates new parts according to the BDD definition.
The only broadcast event I catch is EA_OnPreNewElement. However I need the Element ID to update via the OnPostNewElement or OnPostNewDiagramObject event.

Any reason why I'm not getting these events?



29
General Board / Cannot import UML patterns on a MySQL DB
« on: January 31, 2018, 07:18:39 pm »
Hi,

I'm getting the following error when I try to import a UML pattern: "Failed to import Pattern '...'.  Pattern too large for database field."
I found a thread here matching this issue on MySQL EA projects: http://www.sparxsystems.com/forums/smf/index.php/topic,26367.msg206158/topicseen.html#msg206158

Unfortunately even removing the image does not sort the issue as the XML file remains to large (140 kB).

Is there a way round to resolve this with the current build?


30
Hi,

I have a very large EA project running on a centralised DB. I need to run EA 13's batch to create diagrams cache (images of each diagram are created in the DB).
Unfortunately EA eventually crashes after 5 mins.

Is there a way to run this batch update via an API call in an attempt to handle in a better manner the high volume of data to process?

Pages: 1 [2] 3 4 ... 19