Author Topic: EA selects corresponding attribute in Project Browser  (Read 1717 times)

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
EA selects corresponding attribute in Project Browser
« on: August 30, 2022, 07:43:12 pm »
I'm writing an add-in to read and write the attribute descriptions. When I read the description (notes) from a specific attribute, EA always selects that attribute in the project browser.
For some functional reasons I don't want this, is there any way to avoid this?


Code: [Select]
txtAttributeDescription.Text = attribute.Notes

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA selects corresponding attribute in Project Browser
« Reply #1 on: August 30, 2022, 07:51:09 pm »
You can try to set
Code: [Select]
Repository.EnableUIUpdates = false
AFAIK selecting the attribute only happens when writing (Update()) and not when reading.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: EA selects corresponding attribute in Project Browser
« Reply #2 on: August 30, 2022, 08:21:59 pm »
In the background there was a TechtChanged event that updates the value, so there was actually an update.
I fixed it by disabling the UIUpdates, thanks!