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

Pages: [1] 2 3 ... 10
1
Hi,

The AddIns key only gets created by Add-In installers, not by the EA installer. If it's there, EA scans it during startup; if not it doesn't.
But that only tells EA there are Add-Ins to look for. You must also register the Add-In DLL correctly so EA can actually load it.

/Uffe

Ok, thanks, it works now!

2
You can always create the key if it doesn't exist.

Geert

Yes, but where does EA 15 look for the key?
It is not only the key that is missing but also a directory. Possibly EA15 expects the key in another place?!

3
Another problem creating an Addin:

The registry key HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins
does not exist in my installation of EA 15.0. There is no key called EAAddins at all. So where and how should I register my Addin?

4
Hi folks,
does anyone know a good documentation for the Enterprise Architect Automation API?? Looking for days but havenít found a good documentation.

Thanks Manu

https://sparxsystems.com/resources/user-guides/15.1/automation/automation.pdf

5
You shouldn't try to add object nodes to Activities, or link Activities with other stuff.
On Activity diagrams you should only use Actions. This is similar to State Machines and States. You don't use State Machines on State Diagrams either.

Geert

Well, but what about interacting state machines? A very useful concept to model real-world situations. It would seem logical to be able to draw a diagram with state machines interacting through intermediate states, similar to what one does with Petri Nets. Wouldn't the resulting diagram be called a State Diagram?

6
Hi Geert,

I compared my solution with yours and the problem seems to be that I chose the project as .NET Standard instead of .NET Framwork Class Library.
Now the Add-In works as expected.
Thanks for help!

Raya

I have the same problem and cannot find where to choose the project type in "Blend for Visual Studio".....

7
Is there a manual on how to create EA plugins?

I wrote a couple of articles about writing add-ins: https://bellekens.com/writing-ea-add-ins/

Geert

I am using "Microsoft Blend for Visual Studio" on Windows 10. Your instructions seem to use another version, e.g. there is no "System.Windows.Forms" in my configuration.

8
Is there a manual on how to create EA plugins?

I wrote a couple of articles about writing add-ins: https://bellekens.com/writing-ea-add-ins/

Geert

Yes, I saw this and will exeriment. I have nothing against C# but isnt VBA the default scripting language in EA?

9
I guess so, if your write an add-in that shows the image editor in the main view.

I'm pretty sure you should be able to find some kind of ready-made component you can use as image editor.

Geert

Thanks! My problem is how to create an EA plugin that
1. takes the picture (or some identification of it) as an input argument,
2. then does its thing and
3. then writes a new version of the picture (on file)
4. such that it becomes visible in EA and in generated reports.

Is there a manual on how to create EA plugins?

Regards, Michiel

10
Hey guys,


I've got a number of modellers working mainly with activity diagrams. The deliverables are Word documents, generated by means of a script. The problem is that the diagrams tend to get too large to be squeezed onto a single page.

I've been trying to work out a solution for this, which has resulted in a couple of Bugs&Issues posts, but I can't find a way forward that doesn't require a serious amount of manual editing of either the diagrams, or the resulting document, or both.

The template that outputs the diagrams is very simple, just a package>element>diagram>{Diagram.DiagramImg} thing. The script simply calls DocumentGenerator.DocumentElement().

My script checks the diagram's page orientation. I've found that applying a landscape version of the same template doesn't work, but if I instead InsertBreak(section) and SetPageOrientation() before and after a landscape diagram, using the portrait version of the template nearly works: the diagram is placed on a landscape page, although the document gets an unrequested blank page before the diagram.

So if the issue is that the diagram is too wide, we can get it out. It requires a needlessly complex set of GUI interactions for the modellers:
  • Open the diagram properties
  • Select the Diagram tab
  • Click the Advanced... button
  • Click the Page Setup button
  • Click the Landscape radio button
  • Click OK
  • Click OK
  • Click OK
... but it works.

But when that isn't enough, what do I do?

Divide Diagram into Multiple Pages doesn't work. And doesn't work.

Forcing the modellers to restrict their activity diagrams to what can fit on a page is not acceptable.

There are operations in Project and Diagram to get images from a diagram -- but there's nothing in DocumentGenerator to insert an image into a document.

Is it possible to use DocumentGenerator.DocumentCustomData() to insert image data? If so, how should it be encoded?

Is there another way of getting images into a document? Maybe via the image library or some magic template fragment?

Or is there some other way of getting this done?

TIA,


/Uffe

I had the same problem. One way to deal with this is through a (very) small script in Word that resizes the picture if it is too large and which you run directly after saving the RTF file as docx. This is how I do it. I found that running some script(s) in Word is useful anyway, also e.g. to fix line- and pagebreaks at odd positions.

11
Automation Interface, Add-Ins and Tools / Plugin to edit pictures
« on: May 15, 2020, 07:10:24 pm »
I am looking for a way to let a user edit a picture (not a diagram!) in EA with an external editor. A sort of plug-in. Is this possible?

Thanks for any tips and tricks!

Michiel


12
I have been experimenting and running into propblems with simulations in SysML and UML State and Activity models with the goal of using such simulation for strengthening the faith in dynamic models.

The models I want to use are semi-complex. They consist of subsystems such as signaling lights, movable bridges, sensors, etc. And there is a central system that must control the actuators and receive data from the sensors. This is clearly a multithreaded environment.

I have tried to model this with State Diagrams using the existing Petrinet-like semantics where a Join will only "fire" when all its input states are active. In this way you can create a model where each action consists of entering a "command" state by the central control parallel with entering a "wait" state. The appropriate subsystem waits until the "command" state (that for this purpose is repeated (linked) on the subsystem diagram) enables one of its Joins (Transitions in Petrinet language) and consumes the Command state. After finishing its work in its own thread, it enters a "Confirmation" state that is consumed by the Control thread so that it leaves the Wait state..... Etcetera. The different state machines are started each in their own thread from a Startup state machine in whose diagram I have linked the various Entry elements.
The whole model is not extremely simple but no rocket science either.

This works a bit but not well enough to be useful. I run into all sorts of strange problems. Inexplainable repetitions in the simulation log, inexplainable paths taken, halting of the simulation for no apparent reasons, etc. This also seems to depend on the way in which you organise the model with packages, nested elements, state machines etc. But I have not found a good way to make this work.

I have tried the same idea using Activity Charts but that gives different but similar problems that are also difficult to reproduce exactly.... I have the impression that the semantics of the Fork/Join element is not completely clear (at least to me...).

Of course, I have also tried to use Javascript to set global variables instead of communicating through shared States or Actions. However this leads to models that are very difficult to debug and maintain. And also to multithreading problems similar to those mentioned above.

So, my question is, are there other EA users who have tried similar simulations with multithreaded models and what is their experience and advice?

Regards, Michiel

13
I have read that it is possible to create COM objects with Javascript in a simulation (e.g. of a State Machine). And it should even be possible to communicate between an EA simulation and another application or system, using these COM objects. However, the documentation on this is not sufficient to understand how to do this.

So, my question is: How do I create and use a COM object to communicate via a serial port (USB) from a simulation?

14
General Board / Re: pro cloud server versus EA Editions
« on: April 24, 2020, 07:24:24 pm »
The Pro Cloud Server can't run simulations by itself. It wouldn't be useful at all by itself.

There's no entry in the EA feature table that requires ultimate for simulation.

Simulation of UML Activity and State Machines with Javascript evaluation is available and Corporate and above.

BPMN and SysML simulation need the Unified edition and above.

Hi, sorry to keep nagging, but I am new to the Pro Cloud server. My understanding so far is the following. Can you confirm?

  • When I install a Pro Cloud server (e.g. on my own infrastructure) then the version that I can run is the Corporate Edition, right?
  • In order to be able to fully edit my models, I need to install the EA fat client on my PC, right?
  • On this local client, I can run simulations of UML activity and state models with javascript evaluation, right?

Then I have another question:
We actually use SysML, not UML. There is no real difference between UML and SysML state and activity charts, except that the latter will be integrated in our SysML models.
  • Will I be able to run simulations of these activity and state models in my SysML models?
  • What is SysML Parametric Model Simulation?
  • What is SysML Simulation with OpenModelica?


Regards, Michiel

15
General Board / Re: pro cloud server versus EA Editions
« on: April 22, 2020, 08:26:59 pm »
Thanks for the help!

My conclusion so far is that when using a ProCloud server solution, it is not possible to run automatic simulations (with Javascript evaluations) in your model because for that you need the Ultimate Edition.

Is this conclusion justified?

Pages: [1] 2 3 ... 10