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 ... 12
1
General Board / Re: export scripts to text file
« on: April 04, 2022, 06:22:11 pm »
You can either use the script: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Framework/Tools/Script%20Management/SaveAllScripts.vbs

Or you can use the developer mode in EA-Matic to save your scripts automatically
EA-Matic page: https://bellekens.com/ea-matic/
Latest version of the toolpack: https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/releases/tag/v2.3.21.0

Geert

Thanks! But where do I find Wrappers.Include? It probably contains the class Script....

2
For anyone else finding this, I have now managed to overcome the issue, based on https://sparxsystems.com/forums/smf/index.php/topic,38810.0.html#msg240839.
When creating the document, you need to load a document template, e.g.: reporting.NewDocument("Blank"). The guidance says that the template can be blank (I'd assumed no template quoted between the quotes, but it might also mean an empty template!).
Within the template (I called it Blank), you need to load the Stylesheet that you will be using when adding text. Then the styles specified will be used. For belt and braces, I also have reporting.SetStyleSheetDocument("MyStyleSheet") to ensure that the right style sheet is used.
My suspicion is that this is not how Sparx intended it to work (otherwise I would expect the above to be in the documentation), but this provides a workaround.

Yes, my impression is that SetStyleSheetDocument("MyStyleSheet") should NOT be used because it messes up what is more or less ok using NewDocument("MyStyleSheet").

I encounter many problems regarding this EA-MSOffice interface. Paragraph numbers not formatted etc....

3
General Board / Re: Static text for two documents
« on: March 30, 2022, 12:59:54 am »
If you place your common text in the Notes or Linked Document of some special elements, you should be able to include those in the various reports. You can create different documents, each with a selection of elements.

I would not recommend the use of Fragments, they are slow and not easy to use.


4
General Board / export scripts to text file
« on: March 30, 2022, 12:44:41 am »
I remember having had a script that exported all scripts to text files, very useful. But somehow it has gone after a few laptop switches..... Was probably one of Geert Bellekens wonderful tools!

5
General Board / Re: How to disable all spelling checking??
« on: March 29, 2022, 06:58:46 pm »
Yes there is

Preferences | Objects | Disable Spelling

Geert

Followed by a restart, then indeed it works! I forgot the latter (is not stated in the preferences dialog). Thanks!

6
General Board / How to disable all spelling checking??
« on: March 29, 2022, 02:10:11 am »
There still seems to be no option to disable all spelling checking...... Or am I wrong, I hope so!! The red lines are extremely annoying!

7
I run into an extremely annoying behaviour. When I change anything in a diagram, like moving the position of a connector or an element, other elements automagically move outward, making the diagram larger.
When I move elements back, other elements start moving outward!
Very annoying! How do I prevent this behaviour??

8
I would like to have my script print the last modification date/time of the current EA model. I know how to do this with the DocumentGenerator but I am not using that in this particular script.

Preferably, I would like to be able to access the modification date/time of the running script itself, would that be possible?


9
Hi!
When editing an ArchiMate diagram, all the elements in the Toolbox use the Rectangle Notation.

This makes the icons very small and not so convenient to distinguish.



There are few exceptions: for example, in "Archimate 3.1 / Application / Active Structure Concepts"  the Application Component is represented as an icon rather than using the Rectangle Notation.

I think that editing would be a bit more convenient if elements would be represented with Icons, instead of with Rectangle Notations

I agree, using symbols rather than rectangles is clearer.

10
Suggestions and Requests / Re: Add 'Show InformationFlow
« on: November 01, 2021, 11:15:37 pm »
I agree 100% with the statement below! Showing <<flow>> labels (or any labels at all) should be optional. And you should be able to hide them in a script!

Whether it is bad idea or not depends on context where/how the tool is used. In your context it might be bad (and I am perfectly fine with that), in my context hidden <<flow>> labels is exactly what is often needed and it makes a lot of difference!
Imagine a diagram with 10 elements and 20 flows connectors and _only_ flow connectors in it. You present this diagram to an audience that does not expect any connectors other than flows. Having <<flow>> labels in such diagram causes only nuisance -- the labels clutter the diagram and distract the audience. Someone in the audience usually picks on the labels and asks what they are for? And you need to explain that this is the tool that forces the labels to be there... And then someone picks on subject of tools and so it goes on distracting from the subject of the presentation. And if someone mentions that this is actually a UML tool and that <flow>> is a standard representation of an abstract concept called InformationFlow that in this diagram we mean what you (in the meeting) understand anyway... it is almost guaranteed that by that time majority of normal people out there in the offices (not the UML nerds in this forum) will be already confused to the extend that ruins the meeting.  And you think hey I'd better remove these labels next time. So, in such context hiding these labels is actually a very good idea.
Hopefully this explanation is convincing enough? :)

11
General Board / How to prevent automatic diagram rescaling?
« on: October 18, 2021, 08:05:59 pm »
I run into an extremely annoying behaviour... I have a medium complex SysML diagram, containing 10 elements, many ports and connectors. Now, when I change anything, like moving the position of a connector or an element, other elements automagically move outward, making the diagram larger. When I move elements back, other elements start moving outward! Very annoying indeed! How do I prevent this behaviour??

12
I installed EA on another machine and tried to run a script I wrote. The script stops on calls to CreateObject("System.Collections.ArrayList") and similar calls of CreateObject. Why would that be? Is something wrong in my set-up?

13
I am generating reports with VBScript.
It is unclear to me how to use and set a stylesheet in order to have uniform fonts in the generated report. The function docGenerator.SetStyleSheetDocument does not seem to work.  I have also tried docGenerator.NewDocument("MyStyleSheet"), this has some effect but still the fonts in the generated document do not correspond with those in the stylesheet document. So what is the trick?
Any help is appreciated!

14
General Board / Images are not transfered in export/import
« on: August 02, 2021, 05:03:57 pm »
When I transfer models with XMI export/import and Reference data export/import, it looks like images (pictures in diagrams) are not transfered.
What is the best way to ensure that everything, including images, is transfered?

15
General Board / Re: Import and export linked documents
« on: June 23, 2021, 10:04:39 pm »
Yes, that is possible.
Open the linked document and use the options

Edit | File | Import file
Edit | File | Save As (export to file)

Geert

Indeed, thanks!

Pages: [1] 2 3 ... 12