Refer to Masters with multiple shapes from shapes

S

Stigur

Hi,

I am developing XML for Visio in an outside environment.
When I load simple masters with only one shape included and some
connect-points, I have no problems placing shapes on the drawing.
But when I load masters with multiple shapes, ex. square+circle, Visio will
not open the file.
My shapes in the drawing are coded like this (+ some variables set)
"<Shape ID="1030" NameU="2fordeler" Type="Group" Master="2">
< Some Variables>
</Shape>
"

The error-message I get is:
"The name in the end tag of the element must match the element type in the
start tag"

Suggestions Anyone?

Best regards,
Stigur
 
C

Chris Roth [ Visio MVP ]

Make an example in Visio then save out as VXD and take a look, copy the
pattern.

Normally, it is recommended to have only a single shape inside of a master.
So if you currently have mutliple shapes, simply group them together.

Visio will group them together automatically on drop anyway. An instance of
a master will always be ONE shape, despite what you do inside of the master
container.

--

Hope this helps,

Chris Roth
Visio MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top