AutoXChange 2007 XML Reference Tailor Made Software  
Outline with lines

You can add an outline using either points or lines. When defining the outline using lines each line is listed seperately. You must be careful that the lines form a closed polygon if you want it hatched.

XML Syntax

<Outline>
    <DataLine x1="6518" y1="6521" x2="5663" y2="6521"
/>
    <DataLine x1="5663" y1="6521" x2="5663" y2="9656"
/>
    <DataLine x1="5663" y1="9656" x2="1768" y2="9656"
/>
    <DataLine x1="1768" y1="9656" x2="1768" y2="4051"
/>
    <DataLine x1="1768" y1="4051" x2="6518" y2="4051"
/>
    <DataLine x1="6518" y1="4051" x2="6518" y2="6521"
/>
</Outline
>

Alternate Syntax:

<Outline>
    <DataLine>
        <
x1>6518</x1>
        <y1>6521</y1>
        <x2>5663</x2>
        <y2>6521</y2>
    </DataLine>
    <DataLine>
        <
x1>5663</x1>
        <y1>6521</y1>
        <x2>5663</x2>
        <y2>9656</y2>
    </DataLine>
    <DataLine>
        <
x1>5663</x1>
        <y1>9656</y1>
        <x2>1768</x2>
        <y2>9656</y2>
    </DataLine>
    <DataLine>
        <x1>1768</x1>
        <y1>9656</y1>
        <x2>1768</x2>
        <y2>4051</y2>
    </DataLine>
    <DataLine>
        <x1>1768</x1>
        <y1>4051</y1>
        <x2>6518</x2>
        <y2>4051</y2>
    </DataLine>
    <DataLine>
        <x1>6518</x1>
        <y1>4051</y1>
        <x2>6518</x2>
        <y2>6521</y2>
    </DataLine>
</Outline>

XML Specifics

Outline Denotes the start of the outline (polyline).
DataLine Marks the start of a line to be added.
X1, Y1 The X and Y coordinates of the start of the line
X2, Y2 The X and Y coordinates of the end of the line

 



 
Copyright © 2006 Tailor Made Software, Ltd