Recent Posts

Pages: 1 ... 6 7 [8] 9 10
Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« Last post by qwerty on December 12, 2017, 01:29:57 am »
I use as guid-search this query:
select * from t_object where ea_guid like '*<Search Term>*'

With that you search in the elements, so no wonder you get only packages. (It's a bit like the drunken man searching the lost keys for the house under the street light - not because he lost them there, but because the light is better. LOL)

To find diagram guids you need something like

Code: [Select]
select * from t_diagram where ea_guid like '*<Search Term>*'
General Board / Re: Element Text Alignment
« Last post by qwerty on December 12, 2017, 01:24:38 am »
I'd guess that Archimate makes use of shape scripts. The name can not be moved except by using a shape script.

Bugs and Issues / Default tag values do not work properly
« Last post by PJK on December 12, 2017, 12:41:59 am »
Setting a default value for a tagged value type does not in fact record a default value for the tag. It displays the tag as if the value were set, but in fact the value is null, which shows up in RTF reports, etc.

Example - tag "Term Type":

This  will display as "Term Type=Acronym" for a newly created element, but unless the user explicitly uses the drop-down to change the value, the reported value for the element is null. This is worse than useless, as the users are misled into believing that a default value exists.

This bug has been around since at least V11.
Automation Interface, Add-Ins and Tools / Add watermark to generated document
« Last post by Uffe on December 12, 2017, 12:39:49 am »
Hi all,

I'd like to stamp "draft" (or whatever) watermarks on certain generated documents. RTF doesn't actually support those, but according to this MSDN article you can achieve the same effect using a \shp.

I tried creating a watermark in a Word document and saving that as RTF (which works, Word can render it correctly when reopening the file), then importing that into a linked document in EA (by creating the linked document, then in the RTF editor selecting File - Import), the idea being that I could use that document in a call to DocumentGenerator.InsertLinkedDocument() to get the watermark to show up on all pages.

The EA RTF editor did not display the watermark, but not to worry, the RTF specification says you're allowed to ignore content you can't handle, but if I export the document, the \shp is gone. I'm not sure the spec says you can do that, but anyway, that means this approach doesn't work.

But is there another way to create a watermark like this?

I can script it, sure. But I was looking for a way to have it incorporated into the template.

General Board / Adding Borders
« Last post by NewToThisBPMNStuff on December 11, 2017, 11:41:56 pm »
Sorry for this, however I'm a newbie to the EA piece.

I've done up two Business process models, however I'm attempting to add a border and title? The title in the top right corner one?

I've seen fragments, however can't seem to make anything work.

Your assistance is greatly appreciated. I'm operating EA V13
Hi kjourdan

AFAIK Its not possible to change the UUID's directly via API or scripting .
Does anybody know if the EA UUIDs can be modified via scripting or API? I am aware that the table entries in the database could be manipulated or an XMI file could be exported, modified and re-imported but I would like to work directly on the model.
I may be wrong here as well; but I belief it is some kind of pseudo security to not allow e.g. things like DROP, (Just a guess).

The SQL statements are at the end, performed by the DB behind anyway, and the different SQL SELECT dialects, are transmitted as far as I see.
General Board / Re: Show tagged value?
« Last post by PeterHeintz on December 11, 2017, 09:03:49 pm »
Yes, you can use a shapescript.

This below is one example I use to show my TAG "qualitativeFrequency":

label middlebottomlabel {
Automation Interface, Add-Ins and Tools / Re: Efficient scripting alternative for #Branch#
« Last post by Uffe on December 11, 2017, 09:01:29 pm »
you cannot use WITH directly in EA because EA just ignores it for whatever reason.
In principle all but SELECT statements are ignored.

I may be wrong here -- I'm no DBA -- but I think that's because EA basically uses a lowest-common-denominator SQL dialect, and Access doesn't support 'with' clauses.

Either of those contentions may be wrong. :)

Pages: 1 ... 6 7 [8] 9 10