A token is a word in braces, for example {FileName}. In an ERP field or a template file, Vitreo replaces it with the data of each record. Upper and lower case do not matter.
The item
| Token |
Chip in the field dialog box |
Value |
Example |
| {FileName} |
File name |
File name without extension |
A-100 |
| {FileNameExt} |
File name with extension |
File name with extension |
A-100.SLDPRT |
| {Extension} |
Extension |
The extension |
.SLDPRT |
| {Type} |
Type |
Part, Assembly or Drawing |
Part |
| {Configuration} |
Configuration |
Active configuration name |
Default |
| {Description} |
Description |
The description property of the project |
Bracket |
| {Path} |
Path |
Full path of the file |
C:\Projects\A-100.SLDPRT |
| {Folder} |
Folder |
Folder of the file |
C:\Projects |
| {LastWrite} |
Last write |
Last write time of the file, in the date format of the app |
2026-09-09 |
Quantities and place
| Token |
Chip |
Value |
Example |
| {Qty} |
Qty in parent |
Quantity in its parent. 1 for a level 0 item |
4 |
| {QtyTotal} |
Qty total |
Total quantity over the whole structure |
6 |
| {Level} |
Level |
Depth. 0 = level 0 item |
2 |
| {Index} |
Index |
Position in the list, starting at 1 |
12 |
| {Position} |
Item number (1, 2.1) |
Item number like a SOLIDWORKS BOM. The level 0 item has none |
2.1 |
| {Count} |
Record count |
Number of records in the list |
37 |
| {ChildCount} |
Child count |
Number of direct children |
3 |
The parent and the level 0 item
| Token |
Chip |
Value |
Example |
| {ParentFileName} |
Parent file name |
File name of the parent |
Assembly-100 |
| {ParentConfiguration} |
Parent configuration |
Configuration of the parent |
Default |
| {ParentPath} |
Parent path |
Full path of the parent |
C:\Projects\Assembly-100.SLDASM |
| {Level0:Token} |
Level 0 file name, Level 0 configuration, Level 0 property... |
Any token, for the level 0 item the record sits under |
{Level0:FileName} gives Assembly-100 on every line |
Export facts
| Token |
Chip |
Value |
Example |
| {Date} |
Date |
Export date, in the date format of the app |
2026-09-09 |
| {Time} |
Time |
Export time, hours and minutes |
14:30 |
| {Project} |
Project |
Vitreo project name |
Project A |
| {Page} |
Page |
Vitreo page name |
Frames |
Properties
| Token |
Chip |
Value |
Example |
| {CP:Name} |
Other property... |
A custom property of the file |
{CP:Material} gives Steel |
| {CSP:Name} |
Other property... |
A configuration specific property of the active configuration |
{CSP:Description} gives Plate 5 mm |
CP is the Custom tab of File > Properties in SOLIDWORKS. CSP is the Configuration Specific tab. Write the property name exactly as it is in SOLIDWORKS.
Good to know
- Tokens can sit inside text, for example PartNo-{FileName}.
- An empty value, or a property the file does not have, becomes the Empty value option. See File Name, Location and Options.
- A token Vitreo does not know is written as you typed it and reported as a warning.
- With JSON: quantities as numbers on, a value that is only {Qty}, {QtyTotal}, {Level}, {Index}, {Count} or {ChildCount} is written as a number.
- These long forms work too: {CustomProperty:Name}, {ConfigurationSpecificProperty:Name}, {Property:Name} and {ConfigProperty:Name}.
- The date format is set in the Settings pane. See Date Format.