Author Topic: Decode BinContent in t_document  (Read 15460 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Decode BinContent in t_document
« Reply #15 on: February 22, 2024, 07:28:16 pm »
Hmm, nice catch, thanks Johann  :)

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Decode BinContent in t_document
« Reply #16 on: February 22, 2024, 07:55:40 pm »
Hmm, nice catch, thanks Johann  :)

Geert
Wot 'e sed!!!!!

Out of interest, how did you figure that out?  Seems a "random" change...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Decode BinContent in t_document
« Reply #17 on: February 22, 2024, 09:16:54 pm »
Hope it's not derived from Schutz-Staffel :-(

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Decode BinContent in t_document
« Reply #18 on: February 28, 2024, 08:12:08 pm »
Pure genius Johann.

I would like to award the 2024 'Sparx Sherlock Holmes Award for Best EA Detective' to Johan!!


Thanks to Geert for seeing the element.getTXNote(...) and  element.setTXNote(..) methods.
I'm not sure which release these appeared in, but they do everything I need.
Nearly everything: the value of the languae code which these methods needs can be found in usys_system in the TranslateSecondary setting.

But Johan is still a genius.
« Last Edit: February 28, 2024, 10:00:57 pm by Ian Mitchell »
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Elpis

  • EA User
  • **
  • Posts: 47
  • Karma: +7/-0
  • Make MDA/MBSE vital.
    • View Profile
Re: Decode BinContent in t_document
« Reply #19 on: March 07, 2024, 07:18:26 am »
[...] Nearly everything: the value of the languae code which these methods [Element.GetTXNote and alike] needs can be found in usys_system in the TranslateSecondary setting.
[...]

There is easier way IMHO to find these language codes. Sparx documentation says (for Element.*TX* methods): "[...] Two-letter language code (found on the 'Translations' page of the 'Manage Model Options' dialog)".