Author Topic: DeleteLinkedDocument() has no effect  (Read 1576 times)

Jens Nötzold

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
DeleteLinkedDocument() has no effect
« on: August 21, 2024, 01:25:08 am »
I didn't manage to get rid of an elements' linked document using EA.Element.DeleteLinkedDocument()

Can please somebody confirm that it's not an issue inbetween my left an right ear?

Jens

Jens Nötzold

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Solved: DeleteLinkedDocument() has no effect
« Reply #1 on: August 22, 2024, 06:30:24 pm »
Adding a linked document via EA UI is not reflected to the COM-Object!
So prior trying to delete it, the reference to the element (COM-Object) needs to be reloaded first.
 :-[

Jens

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13212
  • Karma: +549/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Solved: DeleteLinkedDocument() has no effect
« Reply #2 on: August 22, 2024, 07:28:06 pm »
Adding a linked document via EA UI is not reflected to the COM-Object!
So prior trying to delete it, the reference to the element (COM-Object) needs to be reloaded first.
 :-[

Jens
That is pretty much the standard way the API works.
Once you have an object in memory, it won't reflect any changed done in the GUI before you reload.

Geert