Share via


3.2.1 Masters XML Part

The following is an example of a Masters XML part.

 <?xml version="1.0" encoding="utf-8"?>
 <Masters xmlns="http://schemas.microsoft.com/office/visio/2011/1/core" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xml:space="preserve">
 <Master ID="2" UniqueID="{0020640D-0002-0000-8E40-00608CF305B2}" BaseID="{8FEBAF3E-100E-46A7-AFB4-6F1C4D75A7A7}" PatternFlags="0">
     <PageSheet LineStyle="0" FillStyle="0" TextStyle="0">
       <Cell N="PageWidth" V="2"/>
       <Cell N="PageHeight" V="1"/>
       <Cell N="PageScale" V="1"/>
       <Cell N="DrawingScale" V="1"/>
     </PageSheet>
     <Rel r:id="rId1"/>
 </Master>
 </Masters>

The following table provides more information about element and attribute values and element contents found in the preceding sample Masters XML.

Element

Attributes

Notes

Master

ID="2"

UniqueID="{0020640D-0002-0000-8E40-00608CF305B2}"

BaseID="{8FEBAF3E-100E-46A7-AFB4-6F1C4D75A7A7}"

PatternFlags="0"

The ID attribute of the master is two.

The UniqueID of the master is the GUID {0020640D-0002-0000-8E40-00608CF305B2}.

The BaseID of the master is the GUID {8FEBAF3E-100E-46A7-AFB4-6F1C4D75A7A7}.

The master is not used as a custom pattern master.

Cell

N="PageWidth"

V="2"

The width of the drawing page of the master is two inches.

Cell

N="PageHeight"

V="1"

The height of the drawing page of the master is one inch.

Cell

N="PageScale"

V="1"

The page scale of the drawing page of the master is one inch.

Cell

N="DrawingScale"

V="1"

The drawing scale of the drawing page of the master is one inch.

Rel

r:id="rId1"

The shapes on this master are located in the XML part referenced by rId1 in the master.xml.rels XML part.