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 ... 845
1
You can use virtual documents to create a selection of packages for HTML export.

Geert

2
You can export and import existing tagged values on elements using the standard impor/export.

In the example query there are a few tags included.

You can import interfaces as well, but you can't currently import the relation between your interfaces, and your applications.

Geert

3
I really wonder why this is hidden so well and not worth a dedicated method/property at the EA Element. I wasn't even able to see this MiscData property in Visual Studio Debugger.  ???

The API is not much more than a thin layer on top of the database.
That's why a lot of us have build a whole wrapper library on top of the API that works in a more functional way.

Geert

4
Pdata = EA.Element.MiscData

Geert

5
Then add the spaces and newlines like you did before.

The reason they it showed nothing is because null + "some string" = null, but "" + "somestring" = "somestring"

Geert

6
If you update the diagramObjects collection of your diagram, you won't see any new elements untill you do a refresh() on the collection.

Geert

7
have you tried removing the diagram.update()

That statement shouldn't be there anyway.

Geert

8
use coalesce(tvc.Property, '')

Geert

9
Bugs and Issues / Re: Import a diagram (.xml)
« on: December 07, 2023, 02:47:35 am »
You can't import diagrams, you can only import packages.

If the elements on your diagram are located somewhere else, they won't be included in the xml export.

Geert

10
General Board / Re: Group renaming
« on: December 05, 2023, 10:23:40 pm »
not without a script I think

Geert

11
No, what I'm saying is that you can do


Code: [Select]
otherInfo <field.Start>
{field}<Field.End>

This will only add a newLine when {field} has contents.

What you can't do is

Code: [Select]
otherInfo <field.Start>
{field}<Field.End><otherField.Start>
{otherField}<otherField.End>

Because you then have two bookmarks at the same location, and that is not supported.

But since you are using an SQL Fragment, it might be easier to include the (optional) newlines in a single field in your SQL.

Geert



12
See https://sparxsystems.com/enterprise_architect_user_guide/16.1/model_publishing/using_bookmarks.html

Especially the part:

Quote
All .Start and .End bookmarks that enclose a labeled field will hide the label in the report if the field has no content; for example:

The bookmarks Element.Keywords.Start and Element.Keywords.End enclose the Keywords {Element.Keywords} report field, but if an element has no keywords, the Keywords label in the generated report is hidden and the space closed up

Geert

13
You can use bookmarks to with <tagName>.Start and <tagName>.End to indicate that the document generator can skip that part of the tag is empty.

That works to eliminate extra newlines.
Only limitation is that you can't place twoo bookmarks at the same location. That is annoying when you have multiple tags separated by newlines.

Geert

14
General Board / Re: Enterprise Architect V16 - Licenses
« on: December 01, 2023, 11:46:31 pm »
There is a list of resellers on the website:
Some of these might respond sooner, and some might even give you a better price.

https://sparxsystems.com/partners/resellers.html

Geert

15
General Board / Re: Find Triggers that are NOT associated
« on: November 28, 2023, 07:19:19 pm »
I don't have anything in my drawer, and I haven't really worked with those triggers and state machines for a long while, but I might be able to give you some pointers.

- There is no "official" documentation of the database scheme, but you can reverse engineer the database in EA itself, and there is the Inside EA book by Thomas: https://leanpub.com/InsideEA
- There are a few usual suspects for how EA usually links stuff like this
  - a field in the t_connector (like pdata, styleex,...) that contains the id (or GUID) of the trigger
  - a tagged value on the connector (t_connectorTag) that contains the id (or GUID) of the trigger
  - a record in t_xref that contains the guid of the trigger in the description
- You can ususally figure out where EA stores stuff like this by setting up something like SQL profiler that captures all sql statements executed on the database. (make sure to start, save your connector, and stop the profiler, otherwise you have way too much noise)

Geert

Pages: [1] 2 3 ... 845