27.03.2013 Views

STAR*NET V6 - Circe

STAR*NET V6 - Circe

STAR*NET V6 - Circe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Defining Format Styles<br />

Chapter 9 Tools<br />

A file named “STAR6.FMT” is located in the <strong>STAR*NET</strong> install directory. It contains<br />

several built-in format styles which are used by the Reformatter utility, and also for<br />

output formats selected in the Project Options/Other Files dialog. The file can be edited<br />

with any text editor, or it can also be edited within the Reformatter utility be pressing the<br />

“Edit Format Style File” button. Therefore if you know the basic elements of this<br />

definition file, you can then edit it to change any of the current formatting styles, or add<br />

new formatting styles of your own.<br />

The “STAR6.FMT” file can have any number of definition lines. Each line has three<br />

major parts: the format style title, the 2D/3D indicator, and the formatting definition.<br />

Each section is separated from the next by a colon character.<br />

1. The title includes all the text to the left of the first “:” character and is limited to 22<br />

characters. The title for each line is the text that appears in the selection list.<br />

2. A “2D” or “3D” code follows the first “:” character. It indicates whether the format<br />

is to be used for a 2D or a 3D project. If no indicator is entered, the format style will<br />

be used for both 2D and 3D projects.<br />

3. The portion of the line to the right of the second “:” character is the formatting<br />

definition. It contains a combination of special characters that tell the Reformatter<br />

utility how to format the new coordinate file. Below are five simple format style<br />

lines which illustrate style titles, 2D/3D indicators and format definitions.<br />

Comma Separated :2d :p,n,e,d<br />

Comma Separated :3d :p,n,e,z,d<br />

Space Separated :2d :p n e d<br />

Space Separated :3d :p n e z d<br />

Northing & Easting : :p n e<br />

There are three named styles defined in the example above. The first two have separate<br />

formats for 2D and 3D projects. The last named style has no 2D/3D indicator entered,<br />

and therefore the same format will be used for both 2D and 3D projects.<br />

When entering 2D and 3D formats for a style, be sure to spell the two style names<br />

exactly the same or they will be interpreted as separate styles!<br />

Spaces following a style name is ignored as well as spaces before and after the 2D/3D<br />

indicator. This allows you to “line” up the formats to make them more readable in the<br />

STAR6.FMT file as illustrated above. Any spaces following the second “:” character are<br />

not ignored, however. They are considered part of the format definition and will cause<br />

spaces to be published in the formatted output.<br />

139

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!