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

Pages: [1] 2 3 ... 87
Bugs and Issues / Re: Tagged value notes in 15
« on: November 27, 2019, 04:01:59 am »
Wow, I'm glad it was enabled by default, or I would have never found that option  :o
I didn't disable it, but we upgraded from 13.5 so maybe that's a factor.

Well actually, it's a negative option meaning that when you enable it (tick the box) you disable ("hide") the integrated notes view, so strictly speaking I didn't not disable it, but instead didn't enable it, but it was enabled by default after the upgrade -- "it" meaning the option, not the visibility of the notes. Which was disabled, and which I re-enabled by disabling the option.

One for Paolo there. :D


General Board / Re: SysML vs. Design Description
« on: November 27, 2019, 03:55:11 am »

  • Q1: Where/ how in EA should I capture the text description for each block?
    In the block's Notes property. If there's a lot of text, consider a linked document.
  • Q2: Is there a good template that I can use for design description/ specification?
    The supplier-provided templates are generally not worthwhile, you need to create your own.1
  • Q3: Does SysML specify where to capture the description? Should the description be captured in a internal block diagram for each block? Should blocks always be described by other diagrams instead of text?
    Not sure about best practice wrt SysML, and I also suspect the answer is "it depends." But perhaps someone else has a better one.
1Or get a consultant in hint hint. :)


Bugs and Issues / Re: Tagged value notes in 15
« on: November 27, 2019, 01:02:45 am »
Thanks Geert, I found it at last.

It's actually in the manual.  :-[

Assign Notes to a Tagged Value

The notes are displayed in the lower portion of the Properties window only if the 'Hide Properties Info Section' checkbox is not selected in the 'Window Behavior' tab of the 'Preferences' dialog (select the 'Start > Desktop > Preferences > Preferences ribbon option and the 'General > Window Behavior' tab); if you change the setting of this option, you might have to restart Enterprise Architect to make the change take effect

And you do need to restart.


Bugs and Issues / Re: Tagged value notes in 15
« on: November 26, 2019, 11:44:41 pm »
I can still see the notes of my tagged values, both from MDG tagged values (that end up in the properties) as individual tagged values.

But you can alter the size of the notes field at the bottom of the tagged values view. Maybe you simple made it so small you can't see it anymore and you need to drag it back up?
That's just it -- I can't. Not in 15. I can't find any pane for the notes in either the properties dialog, or the Tags section of the properties window.

Undocking doesn't help, resizing doesn't help.


Bugs and Issues / Tagged value notes in 15
« on: November 26, 2019, 08:45:45 pm »
Hey people,

In 13.5 you could see tagged value notes in a separate area of the tagged value window. This no longer seems to be an option in 15, I seem to have to open the notes in a separate window.

Is there a way to get that integrated notes view back?



Automation Interface, Add-Ins and Tools / Re: Distribution of Ribbon Sets
« on: November 24, 2019, 07:51:39 pm »
Can't you also define them at the model level.
IIRC you can set a model default, and a ribbon set for each user group.
This is of course only an option if you use a central DBMS model user security.
Yep, you're right.

I thought that only applied to Perspectives, but you can link Ribbon Sets to user groups as well, as outlined on

Thanks, Geert.


Automation Interface, Add-Ins and Tools / Distribution of Ribbon Sets
« on: November 23, 2019, 03:21:07 am »
Hullo boys and girls,

How DO you distribute ribbon sets to other boys and girls who might want to play with them too?

Once you've made your ribbon set all nice and neat, you'll find it squirrelled away in the secret box %AppData%\Roaming\Sparx Systems\EA\RibbonSets.xml -- but that's your very own special secret box that no one else can touch.

Now in there, you can write in your best handwriting a "techid" to which the ribbon set belongs -- but that's just telling fibs because it's nothing to do with any MDG Technologies at all, now is it boys and girls?

You might think that copying the whole XML structure into an MDG Technology file would make our beautifullest ribbon appear in in the other boys' and girls' GUIs, but no! Calamity! That doesn't work either!

So how DO you do this, boys and girls?


I've noticed the same thing with the normal style, it doesn't work.
We now use our own style "Normal2" instead of "Normal"
But doesn't that mean you have to manually set the Normal2 style in each and every template you create?

There again, it looks like EA doesn't use the Table Text Normal (or heading) style in tables unless you set that manually.

I'm thinking it might be that you need to update Normal in Normal.rtf in order for it to work, but I haven't tested that.
Not an option for me anyway since I'm not one single modeller working on one single computer always and forever.


OK Dudes, are we ready to rock?

I'm working on a style sheet based on Numbered Headings - Black.

I've done some basic stuff to Heading styles, page break before Heading 1, Keep With Next on all Headings, a bit of paragraph spacing, that kind of thing. This works.

I also want to apply some formatting to the Normal style. This doesn't work.

I've set some paragraph spacing and set Keep Together (and manually corrected all the list level fonts because when you change the Normal style, EA resets the formatting in the list levels -- delightful), and while these changes are present in the exported/imported style sheet (from my MDG project to my test project), they are not applied in the generated document.

The same goes for Table Text Normal. I've modified it, made sure it's set in the table-generating template, it comes out as Table Text Normal in the generated table and the paragraph spacing is correct in the style sheet -- but in the generated document, that style has no spacing. But the same changes applied the same way to Table Heading work.

What the actual hell is going on there?

This is in 1512, btw.



Hey guys,

I'm working on a document generation where I want a custom style sheet (based on Numbered Headings - Black).

However, I can't find how to correctly reference the style sheet in the DocumentGenerator.SetStyleSheetDocument() call when the style sheet is deployed in a technology.

In the Resources window, the style sheet appears in a two-tier structure
Code: [Select]
Technology_name ("Technology" field in MDG creation wizard)
    Technology_ID ("ID" field in the wizard)

But referring to the template in each of the following ways fails (silently):

What is the correct way?


Wow Uffe, that's really useful.

Thanks for taking the time.  :)

Found it. It's DocumentGenerator.DocumentCustomData() to the rescue.

All you do is
  • Create a template fragment with a custom field "LinkedName" or whatever.
    The template fragment should have no script reference or SQL query, just leave that part empty.
  • When you create the XML data, construct a hyperlink in EA's internal format.
    <a href="$inet://"><font color="#0000ff"><u>LINK_LABEL_HERE</u></font></a>
  • Give the XML element an attribute "formatted=1".
  • Pass your XML data to the template fragment.
That $inet:// thing is EA's way of separating web-type hyperlinks from in-project ones. I haven't tested stripping that out, but EA gets rid of it during document generation so Word recognizes the link as a well-formed URL without further intervention from me.

Easy peasy.


EDIT 2019-11-19:
The originally posted solution only works when the template fragment is local to the project. If you deploy it through an MDG Technology, you must use a full template instead of a fragment.

Hi again,

Thanks guys. I'm fairly convinced the whole problem is that SScripter is unable to recurse. I have some slight hope that this has been resolved in 1509:
Report generation where a fragment calls other fragments is now possible

... but then again, this should have worked already so p'raps not. We'll see. Meanwhile, I can make my generation work using .DocumentCustomData().
Going to an external script is not really a deployment option for me with this client, so I haven't tested that.

All that was missing was a "thanks for reading this carefully..."  at the end ;)
That'd be like tipping the waiter before they bring the food, wouldn't it?

Anyway, thanks for reading it carefully. :D


Oh, and I'm using the DocumentGenerator API so if there's a way to do it using .InsertText() or .DocumentCustomData() I'm up for it.


Automation Interface, Add-Ins and Tools / Document generation: Hyperlinks
« on: November 16, 2019, 12:30:26 am »
Hi everybody,

I've got a bunch of elements which each has a name and one (1) "Web Address" File.
I want to output these elements in a table with hyperlinks which work in Word.

There is a field {ElemFile.Hyperlink} available in the template which gives me what I want, except the URL is used both for the link target and the displayed link text. I instead want the displayed text to be the element name.

Is there a way to do this?

I've tried inserting a hyperlink in the RTF editor, and setting the link text to {Element.Name} and the link code (as it's referred to in that dialog) to {ElemFile.FilePath} in the hope that the document generation would recognize them as fields and perform the substitution, but that didn't work.

I've also tried storing a brief text in the File Note, hoping EA would pick that up and use it for the link text, but no luck.

Any other suggestions?


Pages: [1] 2 3 ... 87