Author Topic: Targeting document in current window with a script  (Read 267 times)

timoc

  • EA User
  • **
  • Posts: 108
  • Karma: +6/-0
    • View Profile
Targeting document in current window with a script
« on: June 20, 2019, 08:23:51 pm »
Question about the Linked document editor.

Any idea how i can target the document with the current focus? Or find the element for the current document window?


Arquesoft

  • EA User
  • **
  • Posts: 258
  • Karma: +5/-3
  • EA Consulting and development in Spanish
    • View Profile
    • Arquesoft website
Re: Targeting document in current window with a script
« Reply #1 on: June 21, 2019, 02:32:37 am »
In the project browser: Alt G, and in other diagrams: Ctrl U, I think

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9495
  • Karma: +266/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Targeting document in current window with a script
« Reply #2 on: June 21, 2019, 02:47:59 am »
I don't understand what you mean. Can you please explain in more detail?

Geert

timoc

  • EA User
  • **
  • Posts: 108
  • Karma: +6/-0
    • View Profile
Re: Targeting document in current window with a script
« Reply #3 on: June 21, 2019, 07:50:59 am »
With the new 'dynamic element' feature in the document editor, i got thinking about the kind of scripting you can use with the document and notes editors. For example, when editing notes in a linked document in the RTF edtitor, i find it difficult to perform any document formatting without using a mouse.

I reason that if i can target an open linked document window, (or hook the 'save'?), i can draft in markup/down and use a simple markup/down conversion script to restyle it.