PerfectTablePlan file format

Top  Previous  Next

PerfectTablePlan plan (.tp) files are stored as text in an XML format.

The format is fairly straightforward and you should be able to work out most of the details by creating a few .tp files from PerfectTablePlan and examining them. A few important points are noted below.

Indexing

Where different records in the XML reference each other they do so by numerical indexes starting from 0.

<version>

For PerfectTablePlan v3.1.0 you should set the version to 6, e.g.:

<version value="6" />

<guests>..</guests>

This section contains details of all the guests.

The guest group attribute is the index of the corresponding group record.

The meaning of the accepted attribute is given below:

Accepted attribute

Meaning

0

Unset

1

Accepted

2

Sent

3

Declined

4

Cancelled

<groups>..</groups>

This section contains details of all the groups.

<tables>..</tables>

This section contains details of all the tables.

The meaning of the shape attribute is given below:

Shape attribute

Meaning

0

Circular

1

Rectangular

2-5

no longer used

6

Custom

7

Head

8

Banquet

The position of a table is recorded in pixels, with 167 pixels to a metre.

The table assigned attribute is a url encoded list of guests assigned to the seats of the table, e.g. an unencoded attribute "9,0,-1" means:

seat 0 contains the guest with index 9
seat 1 contains the guest with index 0
seat 2 contains no guest

<floorplan_shapes>..</floorplan_shapes>

This section contains details of the shapes added to the floor plan.

The meaning of the shape attribute is given below:

Shape attribute

Meaning

0

Circle

1

Ellipse

2

Square

3

Rectangle

<floorplan_text>.. </floorplan_text>

This section contains details of the shapes added to the floor plan.

<affinities>..</affinities>

This section contains details of all the guest proximities (who should sit next to who).

The affinity guest1 and guest2 attributes correspond to the 2 guests who the affinity is set for. If no affinity is set, neutral is assumed.

The meaning of the affinity value attribute is given below:

Value attribute

Meaning

0

Next to

1

Near to

2

Neutral

3

Not next to

4

Not near to

<stationery>..</stationery>

This section contains details of the current stationery design.