Dear sir,
I use theme Pencil for my diagram. However, after saving file .vsdx and open in Visio, it look incorrect as attached file. Lines are not “hand drawn” style. Even I change to another variant or styles in “hand drawn” theme, lines still not look like “hand drawn”. Please check.
My code :
Diagram diagram = new Diagram();
Page page = new Page();
diagram.Pages.Add(page);
diagram.Pages[0].PresetTheme = PresetThemeValue.Pencil;
diagram.Pages[0].PresetThemeVariant = PresetThemeVariantValue.Variant1;
diagram.Metric = BOOL.True;
diagram.AddMaster(“BASIC_M.VSSX”, @“Rectangle”);
long shapeId = diagram.AddShape(4.25, 5.5, 2, 1, @“Rectangle”, 0);
diagram.Save(“CreateNewVisio_out.vsdx”, SaveFileFormat.Vsdx);
Attachment.
Theme Pencil incorect.png (4.1 KB)