I have a module that creates a Visio (VDX) file outside of Visio. According to the SDK, this refers to "untrusted" XML. I created my xml file by copying Masters from my stencil and then referring to them using an XML sparse file.
In my sparse xml, I override the location and size of the form as follows:
<Shape ID="154" Master="0">
<Text>Text of the shape</Text>
<XForm>
<PinX>2.90625</PinX>
<PinY>3.895833333333333</PinY>
<Width F="No Formula">0.75</Width>
<Height F="No Formula">0.5</Height>
</XForm>
</Shape>
My figure is a group with sub-figures.
It works, Visio can open it, but sub-forms have the default width and height of the wizard. Also, links between shapes are not routed correctly.
If I copy / paste the same from a new file, then I get the expected result.
I tried to force the width and height of the subforms. I get the same problem.
VBA , trigger() Cell, .
, . , enter , .
, visio , .
, , . , .
.
Eric Hudon