You can try to open the diagram, save it and close it using the API functions.
Maybe that works the same way as doing it manually?
Indeed, this is a much easier way to get the diagram frame for free, thank you Geert for that!
I'm getting closer and closer to my end-goal, layout of the diagram is more and more under control.
One of the last difficulties I need to solve is the fact that EA is not completely happy with the sub-elements that I create in my constraintLink. These are my findings:
- The good thing is that they show as embedded DiagramObjects in the constraintLink (with the little square for a connector).
- On the other hand, EA generates a new set of sub-elements when I select manually the constraintLink in my ParametricDiagram. It must be that he is not happy with my sub-elements. The automatically created sub-elements show as owner the ConstraintBlock that was set as PropertyType for the ConstraintLink, which makes sense of course.
When I try to set the ownership (parentID) myself on my own sub-elements, then unfortunately the sub-elements do not become embedded elements of the ConstraintLink in the ParametricDiagram.
I do not see the difference between my own sub-elements and the ones created automatically by EA. Any hint?