Format of XML file

Build 1501 on 14/Nov/2017  This topic last edited on: 18/Sep/2015, at 11:31

The XML file for start/end shapes definition contains a section <ends> with series of definition for each <end... > with unique id. The sample below shows only the first end.

<?xml version="1.0"?>

<ends>

 <end id="1" name="Arrow triangle left" hotspot="2500,2500" a="20" b="0">

   <polygon>0,2500,5000,0,5000,5000</polygon>

 </end>

......

</ends>

For each end the following is defined:

id="<number>"

The unique id from 1 to 65535.

name="<name>"

The name that appears in the Fred4 rule&dash panel.

hotspot = "<x,y>"

The hotspot coordinate, i.e. the contact point between the rule and the end.

a = "<number>"

The first parameter of the resizing of the shape based on the rule weight. Optional. The expression is x = a * y ^ 2 + b * y

b = "<number>"

The second parameter of the resizing of the shape based on the rule weight. Optional

List of polygons or ellipses

A polygon boundaries are in the format X1,Y1,X2,Y2,...Xn,Yn. The order of point pairs is not important.

An ellipse is defined by CenterX,CenterY,RadiusX,RadiusY.

All the coordinates are expressed in millipoints and them refer to a rule at zero degrees with 1000 millipoints (1pt) as weight.