Hi - there’s no point adding an example or a code snippet just yet as what I’m trying to do would seem to be very simple except it doesn’t appear to be working.
So I add 40 shapes to a digram with a single page. And then connect them all using a dynamic connector. When I do this is get a single letter sized page (first shape at 10, 4) and then each shape 1.5 inches below. But the page does not resize so the rest of the shapes are off the bottom of the page.
Page page = diagram.Pages.GetPage(0);
page.PageSheet.PageProps.DrawingSizeType.Value = DrawingSizeTypeValue.FitPageDrawContents;
page.PageSheet.PageProps.DrawingResizeType.Value = DrawingResizeTypeValue.Automatically;
Doesn’t do anything.
Setting the height of the page does work but the multipler (ceiling(40/7)) * 11 gives me 6 pages of height but there is a section at the top of the page that when the diagram is loaded become part of a page.
So what I want to do is just add 40 shapes and connectors to a page and have the page resize.