Book a Demo

Author Topic: Setting colors in DiagramObjects - V15.1 to V16.0  (Read 5714 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Setting colors in DiagramObjects - V15.1 to V16.0
« on: November 10, 2022, 10:12:55 pm »
In V15.1, when creating a new DiagramObject, I can set the colors (background, border and font) to be '-1', which makes them take their default color, as expected.
In V16.0,1605  setting the DiagramObject colors to -1 makes them all white. I get a kind of ghost of the original.
I can't think of a work-around for this, because the element is deciding what its defult colors are, based on it's MDG, which is hard to access.
« Last Edit: November 10, 2022, 10:16:01 pm by Ian Mitchell »
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Setting colors in DiagramObjects - V15.1 to V16.0
« Reply #1 on: November 10, 2022, 11:08:33 pm »
If it doesn't work via the API, you'll have to resort to updating the database directly.
In the database it's still -1 for default...

Geert

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Setting colors in DiagramObjects - V15.1 to V16.0
« Reply #2 on: November 11, 2022, 07:49:59 pm »
Grrrrrrrr
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Setting colors in DiagramObjects - V15.1 to V16.0
« Reply #3 on: November 11, 2022, 09:12:19 pm »
Grrrrrrrr
O comon, you know the drill. Repository.Execute("update t_diagramObjects set BackColor = -1, Fontcolor = -1, BorderColor = -1 where Object_ID = 123 and Diagram_ID = 456") ;D

Geert