Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sebastian Mense

Pages: [1]
1
Thanks for the help!

I tried a bit further and found a solution:

1.
Either
IDualRepository.RefreshOpenDiagrams();
or
.Update() all elements whose labels should be updated.
2. Reload the diagram
3. Save the diagram

I'm not entirely sure why it works like this but I hope this can help someone with a similar problem.

Sebastian

2
I implemented a functionality that enables us to resize labels which
allows us to change the amount of rows a label will have. This is part
of our layouting algorithm.

If I was to set the label width to 0, EA would make the label use the
maximum amount of rows it can do. Setting the label size to a really big number
would make it single-line.

What I need to know now is when EA actually does this correction change
(Basically what EA does too when you resize a label by hand to fit the text).
The next ste in layouting would be placing the label relative to a port, but
without the proper width this will not work.

What I am doing now is:

1. Read label from the database
2. Change the width of the label (in the database)
3. Reload the diagram
4. Reading the label again from the database
5. Change the label position (dependant on width)

Reloading the diagram doesn't seem to work. I only get
the not yet corrected width from the database.

How can I make EA execute this?

Best Regards
Sebastian

3
This error happens most of the time when we set up our developing
environment. The fix that works for us (Tested with Visual Studio 2015 and 2017)
is rather simple. You have to enable native code debugging in the start up project
(The project that will start EA.exe).



I hope this will help you.

Best Regards

Pages: [1]