Importing Data into AutoDownload

Importing Data into
AutoDownload
1) Importing Course Data
The course data should be exported from OCAD in XML format. The file can be viewed in Notepad.
There is a list of controls followed by a list of courses. Here is an extract from the file. Only the second
part is needed in this situation, eg Yellow course starts S1 – 73 - 75
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE CourseData SYSTEM "IOFdata_OCAD.dtd">
<CourseData>
<IOFVersion version="2.0.3" />
<ModifyDate>
<Date>2011-11-10</Date>
<Clock>08:45:25</Clock>
</ModifyDate>
<Map>
<Scale> 15000 </Scale>
<MapPosition x="-100.1" y="89.6" />
</Map>
<StartPoint>
<StartPointCode> S1 </StartPointCode>
<MapPosition x="63.4" y="-32.6"/>
</StartPoint>
<Control>
<ControlCode> 37 </ControlCode>
<MapPosition x="-14.5" y="-70.6"/>
</Control>
<Control>
<ControlCode> 38 </ControlCode>
<MapPosition x="-23.8" y="-62.2"/>
</Control>
<Course>
<CourseName> Yellow </CourseName>
<CourseId> 0 </CourseId>
<CourseVariation>
<CourseVariationId> 0 </CourseVariationId>
<CourseLength> 2060 </CourseLength>
<CourseClimb> 35 </CourseClimb>
<StartPointCode> S1 </StartPointCode>
<CourseControl>
<Sequence> 1 </Sequence>
<ControlCode> 73 </ControlCode>
<LegLength> 261 </LegLength>
</CourseControl>
AutoDownload
Importing Data into AutoDownload.doc
1
Alan Simpson
20-07-2013
<CourseControl>
<Sequence> 2 </Sequence>
<ControlCode> 75 </ControlCode>
<LegLength> 100 </LegLength>
</CourseControl>
Select Courses – Import/Export XML Courses - Start
2) Importing Entries
Sometimes the Club Captain supplies lists of entries for Compass Sport Cup, Yvette Baker Trophy
etc. If these are in an EXCEL file, then it is fairly quick to cut and paste them into the correct csv file
format.
A sample CSV file, "AutoDownloadEntries.csv", can be found in the AutoDownload Program Files
folder. Alternatively, export entries to generate a csv file. There are 16 columns. The first 8 are all that
we need. I suggest you start with AutoDownloadEntries.csv, save with a new filename, eg Entries.csv,
and cut and paste into it.
Race
Number
Card
Number
363633
363634
Membership
Number
440659
339775
363642
339778
363646
363647
339773
363653
363654
Name
AgeClass
Club
Country
Alice Glanville
Suki Hannan &
Caroline Wallace
Toby Bate
Paris Ward
Alice Bell
Sam Peat
Emily Keenan
Scott Hill
Simon Hayward
Will Fordyce
Kit Grierson
W12
W12
DEVON
IND
Course
Class
Yellow
Yellow
M14
M14
W16
M14
W14
M16
M16
M18
M18
DEVON
DEVON
IND
DEVON
IND
DEVON
DEVON
DEVON
IND
Yellow
Yellow
Orange
Orange
Orange
Lt green
Lt green
Green
Green
It is convenient to assign hired dibber numbers in column 2 at this stage.
Then go to the AutoDownload event file – Entries – Import/Export Entries – Import/Export CSV Entries
Having filled the selection boxes, click Start
For more detail of the CSV file format, see page 3.
AutoDownload
Importing Data into AutoDownload.doc
2
Alan Simpson
20-07-2013
2A) Importing Entries to AutoDownload On-Screen Help
When importing entries the "Entries Import Mode" determines how the csv file is processed.
- Delete Existing. Entries which are downloaded are NOT deleted.
- Updating. Card Numbers are not updated if the SI-Card has been downloaded.
If one of the updating modes is selected the rules on whether to update or not are dependant on
whether the event uses "Race Numbers".
Race Numbers: Matches on race number. Updates if only one entry with the race number exists for
the event.
No Race Numbers: Matches on Card Number and/or Memebership Number. Updates if only one
entry exists which matches on either Card Number or Membership Number. If the entry being
imported does not have either a Card Number or Membership Number then the match is based on
Name.
A sample CSV file, "AutoDownloadEntries.csv", can be found in the AutoDownload program files
folder. Alternatively export entries to generate a csv file.
The csv file has a header row and 16 columns. The columns must be kept in order. Not all columns
are relevant for any given event type:
1. RaceNumber - whole numbers, can be blank if event does not use race numbers. If Bib Numbers
are also required, for some or all competitors, then the Race Number should be followed by a colon
and then the Bib Number e.g. 123456:A101. Bib numbers can be alphanumeric max 10 characters.
2. CardNumbers - whole numbers, the competitor's SI-Card number. For team events (e.g. pairs)
multiple numbers can be entered with a "~" to separate them.
3. MembershipNumbers - alphanumeric max 10 characters, for team events (e.g. pairs) multiple
numbers can be entered with a "~" to separate them.
4. Name - alphanumeric max 50 characters, mandatory.
5. AgeClass - alphanumeric max 5 characters, this is called category for some event types. For some
event types the format is validated.
6. Club - alphanumeric max 50 characters.
7. Country - alphanumeric max 3 characters, only used for international event types.
8. CourseClass - If known in advance enter the class for class based events or the course for course
based events. New courses will be created if the course entered can not be found.
9. StartTime - format "HH:MM:SS", only used when start times have been allocated. For some event
types, e.g. orienteering start times must be unique on a course.
10. StartTimePreference - only used when the AutoDownload start time allocator is to be used. Valid
options are VeryEarly, Early, Middle, Late, VeryLate, Any, Manual and Punching.
11. EnvelopeNumber - whole numbers, used to group entries together for use within the start time
allocator.
12. NonCompetitive - Y/N, if blank deemed to be competitive.
13. Seeded - Y/N, if blank deemed not to be seeded, only used in the start time allocator.
14. IOFNumber - alphanumeric max 8 characters, only used for orienteering World Ranking Events
(WRE).
15. Handicap - whole numbers, only used for Mountain Marathons.
16. RegistrationNotes - text to appear on registration sheets, max 200 characters. Only used for
BMBO and cyclosportive events.
AutoDownload
Importing Data into AutoDownload.doc
3
Alan Simpson
20-07-2013