Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Batch updating

Erik Ramfelt edited this page Oct 24, 2017 · 1 revision

The tool can batch update name/descriptions and other data in the component.dat file. The batch update command takes a CSV (';' separated) with a header line specifying what data that should be changed.

Batch file structure (CSV)

Header:

Filename;TYPE[NAME];TYPE[NAME];TYPE[NAME]
TYPE: Item / Kewyord / Var
NAME: The name of the item, keyword or variable

The rest of the file contains the name of the file and the new data with the same columns as the header

Example file:

Filename;Item[Name];Item[Description];Var[FlexLink::FunctionalCategory]
X180\Beam.vcm;Beam;Conveyor beam X180;Leg
X180\EndDrive.vcm;End drive;End drive unit X180;Leg

This will update file "X180\Beam.vcm" model and set the Items properties FunctionalCategory=Leg, Name=Beam, Description=Conveyor beam X180. If the model already has the correct name and description the file will not be updated.

To run the command: java -jar console.jar -v batchupdate -i ..\components --ignoreMissing --ignoreReadOnly naming.csv

Clone this wiki locally