This section describes the declarative syntax used by rules that define drawing shapes.<h2>Syntax</h2> <pre> <i>shape-rule:</i> <i>shape-clause</i> <i>shape-clause</i> <i>shape-rule</i> <i>shape-clause:</i> <i>assign-tag</i> <i>reset-tag</i> <i>resetAll-tag</i> </pre> <h2>&lt;assign&gt; tag</h2> Assigns values to one or more shape properties. <pre> <i>assign-tag</i>: &lt;assign&gt; <i>shape-property</i><sub>many</sub> &lt;/assign&gt; </pre> All shape properties belonging to the <q ref="core.svg:ZDrawing">ZDrawing</q> aspect are supported. The shape properties can be simple scalars (string, numeric, or boolean values), compound objects, shape parts array, or shape symbols. <pre> <i>shape-property</i>: <i>scalar-shape-property</i> <i>compound-shape-property</i> <i>shape-parts-property</i> <i>shape-symbol-property</i> </pre> <h2>&lt;reset&gt; tag</h2> Resets one or more shape properties to their default values. <pre> <i>reset-tag</i>: &lt;reset&gt; <i>shape-property</i><sub>many</sub> &lt;/reset&gt; </pre> <h2>&lt;resetAll&gt; tag</h2> Resets all shape properties to their default values. <pre> <i>resetAll-tag</i>: &lt;resetAll/&gt; </pre> <h2>Example</h2> <pre> &lt;extend rule="defineShape"&gt; &lt;constraint&gt;element isa gml2:Tabstrip&lt;/constraint&gt; &lt;comments&gt;solid rectangular block with a tabstrip symbol at the top&lt;/comments&gt; &lt;assign&gt; &lt;aspect&gt;svg:ZBlock&lt;/aspect&gt; &lt;fillColor&gt;#336699&lt;/fillColor&gt; &lt;strokeColor&gt;#91A1B1&lt;/strokeColor&gt; &lt;layoutMode&gt;SVG_LAYOUT_PLOW&lt;/layoutMode&gt; &lt;resizeMode&gt;SVG_FREE_SIZE&lt;/resizeMode&gt; &lt;framePadding top="10.75" right="0.75" bottom="0.75" left="0.75"/&gt; &lt;frameParts&gt; &lt;path wireframe="true" d="JOIN(['M',&#64;x1,&#64;y1+10,' h30 v-10 h-20Z M', &#64;x1+30,&#64;y1+10,'h25 v-10 h-18 l-7,7Z M',&#64;x1+55,&#64;y1+10, 'h25 v-10 h-18 l-7,7Z'],' ')" fill=""/&gt; &lt;rect wireframe="true" x="&#64;x1" y="&#64;y1+10" width="&#64;w" height="&#64;h-10" fill="none" stroke="currentColor"/&gt; &lt;/frameParts&gt; &lt;/assign&gt; &lt;/extend&gt; </pre>(c) SAP AG 2003-2006. All rights reserved.