Book a Demo

Author Topic: v16.1 Re-laying out the diagram via API will reset Label colours AND locations!  (Read 3974 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
We have been managing connector labels (such as MiddleTopLbel etc.) programmatically. Once set and saved to the repository, we can successfully reload the diagram and correctly retain the labels!  We can even have the diagram manually laid out using the button at the top of the diagram.  Cool, we said!  Works great!

Then we used our usual automatic diagram management add-in and found that the label colour and positions "go west"!  It seems the values in StyleEx are reset!

We can find no parameter to the API LayoutDiagramEx method that we use that would cause this behaviour.
LayoutDiagramEx (string DiagramGUID, long LayoutStyle, long Iterations, long LayerSpacing, long ColumnSpacing, boolean SaveToDiagram)

Can anyone suggest a rationale for this behaviour, or should I just report a defect?

TIA,
Paolo
« Last Edit: June 15, 2023, 09:41:55 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Rationale? Rarely seen a rationale in the API/GUI relation. Send a bug report and look for a work around. As usual.

q.