Author Topic: Attributes black in projectbrowser when created via Automation  (Read 781 times)

bert dingemans

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Attributes black in projectbrowser when created via Automation
« on: October 05, 2018, 08:57:10 pm »
Hi

Since version 14 when I create an attribute via scripting a black box appears in the projectbrowser and not the image of the scope. In the element browser the attribute is correct displayed. I looked in the t_attribute table but see no differences between the original attribute and the generated one?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10331
  • Karma: +339/-30
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Attributes black in projectbrowser when created via Automation
« Reply #1 on: October 05, 2018, 08:59:26 pm »
Do the attributes have a specific stereotype?

Can you post the code that creates the attributes?

Geert

bert dingemans

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Attributes black in projectbrowser when created via Automation
« Reply #2 on: October 06, 2018, 04:48:40 pm »
If Not IsNothing(objElement) And Not IsDBNull(objRow.Item("Attribute")) Then
                            Dim objAttribute As EA.Attribute
                            objAttribute = objElement.Attributes.AddNew(objRow.Item("Attribute"), "Variant")
                            objAttribute.Notes = strDocum
                            objAttribute.Update()
                            objElement.Update()
                            strDocum = ""
End If


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7276
  • Karma: +84/-12
    • View Profile
Re: Attributes black in projectbrowser when created via Automation
« Reply #3 on: October 08, 2018, 08:12:10 am »
From memory, it's public attributes/operations. It happens when DPI scaling is required.
Eve

support@sparxsystems.com

bert dingemans

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Attributes black in projectbrowser when created via Automation
« Reply #4 on: October 08, 2018, 11:14:57 pm »
Hello, I found the solution, setting the visibility of an attribute to Private did the trick