Hy,
my problem is the controls proprty of the shape called “Frame Corner”. The manipulation from that control propertys doesnt seem to be effective in Visio.
If i try this:
Shape test1 = diagram.Pages[pageIndex].Shapes.GetShape(diagram.AddShape(pinX, pinY, xLenght, yLenght, typname, 0));
foreach (Aspose.Diagram.Control item in test1.Controls)
{
item.X.Ufe.F = "=BOUND(Width*0.1063,0,FALSE,0,MIN(Width*0.5,Height*0.5))";
item.Y.Ufe.F = "=Height*1";
item.XDyn.Ufe.F = "=Width*0";
item.YDyn.Ufe.F = "=Height*0";
}
I see in Visio developertools the right value, but it hasn’t any other result on that sahpe. Now if I change the value in devtools, the Shape will set its propertys.
I have tryed the shape called “Plaque” and some others, allways seems the be the same problem.
My experiment, to fix it with the method test1.RefreshData(), wasnt successful.
The Class is in the upload.
VisioTest.zip (102.6 KB)