TPC 2026
TPC 2026

 

 

Navigation: Using the TPC Desktop > Using Categories >

Category Syntax

 

 

 

 

TPC uses the following syntax to define a category

 

[-]/Category[/SubCategory]

 

where the brackets [ ]  define optional information that may not be included for any particular category.

 


Example

Here is the start of the UserSymbols.dat file, that defines the Point Symbol categories. 

Notice that the symbols none, tick and x are un-categoried, followed by categories /Shapes and /Shapes/Proposed.

#24.0

#TPC Symbols

#Point Symbols\none,None,0

#Point Symbols\tick,,1

#Point Symbols\X,,6

 

/Shapes

#Point Symbols\triangle,,2

#Point Symbols\circle,,3

#Point Symbols\diamond,,4

#Point Symbols\point,Point,5

#Point Symbols\rectangle,,21

#Point Symbols\square,,29

#Point Symbols\quarter fill circle,Quarter Fill Circle,92

#Point Symbols\half circle,Half Circle,101

#Point Symbols\half square,Half square,103

#Point Symbols\half diamond,Half diamond,105

 

/Shapes/Proposed

#Point Symbols\triangle proposed,Proposed Triangle,258

 

/Un-Assigned

Drainage\culvert inv,,500

 


Placing Items in Categories

All the items that follow a category will be placed in that category, until a new category is encountered.

In our example above, the /Shapes category will have 10 items in it because 10 items are encountered before the next category definition, /Shapes/Proposed.


Appended Items and Categories

Items can be appended to their respective .dat files preceded by their category name.  When TPC encounters this, it simply appends that item to that category.

Example

In this example, the point symbol E16 CAP was added to the /PLSS category via the Browse button in a dialog.  TPC appended that symbol to the end of the UserSymbols.dat file. Each time TPC starts and reads the UserSymbols.dat file, it will add this symbol to the /PLSS category, even though that category was defined earlier in the file. See Adding Point Symbols.

/PLSS

corners\e16 cap,E16 CAP,,,

 


Un-Categorized Items

Lists of items, like Point Symbols and Line Types, will often have un-categorized items.  These always appear at the top of the list instead of within any category.

In our example above, the point symbols none, tick and x are un-categorized.


Un-Assigned Category

TPC appends user defined point symbols and line types to the end of a .dat file.  These are automatically placed in an Un-Assigned category.

In our example above, the symbol Drainage\culvert inv,,500 will be placed in the Un-Assigned category for Point Symbols.

In any list, the Un-Assigned category is always the last category displayed in the list.  If you want your user symbols to appear higher in a list, consider moving them to a new or existing category in the .dat file.


/Category

Categories start with the forward slash / character, then the category name with no spaces between.

In our example above, /Shapes creates the Shape category.


/Category/Sub Category

To include sub categories, repeat the category name followed by the sub category name, as in /Shapes/Proposed.


- (minus sign)

Precede any category with a minus sign to hide it in the pull down symbols list.   Use this to simplify the list, showing just the list categories you are most likely to use.

In our example above, -/Shapes/Proposed would hide the Shapes/Proposed sub category.

When you hide a category, the category itself, along with any items under it, are hidden.  If you were to hide the /Shapes/Proposed sub category above, all of the point symbols in that sub category would also be hidden.


Category Order

The order in which categories are encountered in a .dat file determines the category sequence in the corresponding list.  To change the sequence in the list, change the location of the category in the .dat file.

See Editing Categories.


Related Topics

Using Categories
Editing Categories
Adding Point Symbols

Editions

Personal, Premium, Professional

 

 

 

Copyright © 2026 Traverse PC, Inc.