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 ... 853
1
I don't think you can add a diagram image in a script fragment.

With a document script fragment that should be possible. See https://sparxsystems.com/enterprise_architect_user_guide/16.1/model_publishing/document_script_fragment.html

Geert

2
General Board / Re: Automating Python Connection to Cloud_Repo.eap
« on: February 23, 2024, 12:32:47 am »
You did not read my response completely.
If you create the shortcut file, you can open that file with a text editor, and you have the connection string you can use in OpenFile.

BTW, you can't simply run that code in an Azure Function. You are using the API of EA, which needs a full install of EA.
Compare it to automating Excel using the Excel API. That won't work either if you don't have office installed.

Geert

PS. Don't bother with ChatGPT, that's not even close to what you should be doing.

3
Stefan,

Is EA installed as a "virtual" app or a regular app?
In case it's virtual, that might be the cause of the problem.

Geert

4
Geert, thanks for your response. The concept of inheritance would suggest it should work but it seems this isn't a capability of Sparx then?
Yes the "inherited" tags show up on the properties, but they are not actually stored on the element itself.
The legend with auto-color only looks at the tagged values of the element, not at the "inherited" tagged values.

Geert

5
autocolor will only work on tagged values of the element, not tagged values of the classifier.

Geert

6
General Board / Re: Automating Python Connection to Cloud_Repo.eap
« on: February 22, 2024, 11:37:32 pm »
If you connect to the server manually, and then save the connection as a shortcut, you get a textfile with the connection string.

You can either use that file directly, or use the connection string in the code.

Geert

7
Hmm, nice catch, thanks Johann  :)

Geert

8
Q: Anyway, can the code templates call external scripts (so I could at least do some point fixes here and there?)

//Rolf

IIRC there is indeed a way to call an add-in function.
I found this snippet somewhere on this forum. I never used it myself though.

$opCode = %EXEC_ADD_IN("CS_Addin", "GetSignals", classGUID, classStereotype, ...)%

Geert

9
Bugs and Issues / Re: Local Paths for code generation are not persisted
« on: February 22, 2024, 07:24:04 pm »
Hi Stefan,

If those paths get lost, there is probably an issue with your roaming profile not being saved when you log out.
You might want to check with the infra team to resolve this issue.

Geert

10
General Board / Re: Build of github.com/Automic/EaToConfluence?
« on: February 22, 2024, 07:21:20 pm »
Hi Geert,
I'm back at work now...  I've been asked to investigate this, but before I do, I was wondering if you had done anything since we last discussed a few weeks ago?
Has anyone else had a look recently?

TIA,
Paolo

Nope, not yet.

Geert

11
Ian,

I'm pretty sure I saw some methods to get translations using the API
...
EA.Element.GetTXNote (string Code, long Flag) and the likes.

Geert

PS. the Dutch is pretty much OK, no apologies neede :)

12
Yes, you can either use fragments that include the header, or bookmarks with start/End to hide the part you don't want to see.

Geert

13
General Board / Re: How model a transformation of information?
« on: February 18, 2024, 09:13:42 pm »
We use my EA Mapping add-in: https://bellekens.com/ea-mapping/

I've also seen examples where link to element feature relations are used.

Geert

14
General Board / Re: Change Archimate element default appearance
« on: February 18, 2024, 09:12:09 pm »
You can do all that by defining your own UML profile and MDG.

Quite a bit of work, but very doable. See https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/mdgtechnologies_2.html

Geert

15
I don't get it. What's the point of using a scriptlet, if you don't want it to run as a scriptlet but as a regular script?

Why not use a normal script?

Geert

Pages: [1] 2 3 ... 853