XML Script: Difference between revisions

From OCAD Wiki - English
Jump to navigation Jump to search
Line 50: Line 50:
| File.Save || Enable || Boolean || true, false
| File.Save || Enable || Boolean || true, false
| File.SaveAs || File || String || ocd file name
| File.SaveAs || File || String || ocd file name
| File.MultipleFileImport || Directory <br> New Offset <br> Horizontally <br> Vertically <br> Angle <br> MapScale <br> Grid Distance <br> Layer Field || String <br> Enum. types <br> Ingeger <br> Integer <br> Double <br> Integer <br> Double <br> String || Directory of import files enabled, disabled
| File.MultipleFileImport || Directory <p> New Offset <p> Horizontally <p> Vertically <p> Angle <p> MapScale <p> Grid Distance <p> Layer Field || String <p> Enum. types <p> Ingeger <p> Integer <p> Double <p> Integer <p> Double <p> String || Directory of import files enabled, disabled
| File.ExportOIM | File | String | html file name
| File.ExportOIM | File | String | html file name
| File.Exit | Enabled | Boolean | grue, false Close OCAD Program  
| File.Exit | Enabled | Boolean | grue, false Close OCAD Program  

Revision as of 15:42, 4 October 2011

(This function is only available in OCAD Professional!)

Choose this command to execute functions whose settings are defined in a XML file.

http://www.ocad.com/Whitepaper/Ocad10_Xml_Script_Specification.pdf

Example of XML script file:

<ocadScript>
<exportScript>
<export id="3">
<file>c:\export\exportfile.bmp</file>
<format>BMP</format>
<resolution>300</resolution>
<anti-alias>true</anti-alias>
<colorCorrection>true</colorCorrection>
<partialMap>
<enabled>false</enabled>
</partialMap>
<tiles>
<enabled>true</enabled>
<width>500</width>
<height>500</height>
</tiles>
</export>
</exportScript>
</ocadScript>



1. Introduction

Select Execute XML Script from File menu.


2. XML Script General

File


Node <OcadScript> Parameter Data type Values / Description
File.Open File String ocd file name
File.Close Enable Boolean true, false
File.Save Enable Boolean true, false File.SaveAs File String ocd file name File.MultipleFileImport Directory

New Offset

Horizontally

Vertically

Angle

MapScale

Grid Distance

Layer Field

String

Enum. types

Ingeger

Integer

Double

Integer

Double

String

Directory of import files enabled, disabled File | String | html file name Enabled | Boolean | grue, false Close OCAD Program


Previous Chapter: Chapter 17: Database

Next Chapter: Chapter 19: Course Settings for Orienteering

Back to Help:Contents