1.7.2. Editing configuration files on file level

1.7.2.1. Translation of the "Brief information "

[Important]Important

Settings for the configuration files (CFG, DEF, etc.) should preferably be made in PARTadmin.

Editing in the configuration files should only be conducted by CADENAS (development, consulting).

This can be useful, for example, when creating new files or setting special markups for controlling the display in PARTadmin.

For these cases we recommend the use of Windows Notepad or with higher requirements Notepad++. Please do not ever use PSPad, since errors with coding UTF8 may arise, which results in files being unreadable for PARTsolutions.

General syntax of the tags

There are different types of tags for keys such as short description, value type definitions, activation/deactivation and control elements for the user interface. Short description and control elements can also be used for blocks.

All tags start with “#:”, followed by the keyword and end with a semicolon.

[Note]Note

TAGs should actually be used to improve usability, however, they are not technically required.

The following list describes TAGs for the placement of help texts

The following list explains TAGs for specifying value ranges

[Note]Note

If value ranges are not specified (so do not have a set "VALS_" tag), internally, "VALS_S" is supposed.

The following listing describes TAGs for general control

A few examples

#:VALS_S 
#:HELP;CheckOut Folder for Native Parts 
#:SIMPLE;1 
NativeCheckoutTargetFolder=?Application.ResolveEnv("%CADENAS_DATA%\\pool\\catia")

#:VALS_S 
#:HELP;Submenu - Tools - Activate the command that should be loaded at startup 
 and set the value on "Yes". 
If a key is disabled the code and command will not be available in CATIA. See manual.
#:INACTIVE;COMMAND_SHOW_PSOLNCScan=no

#:VALS_S 
#:VISFGUI;0 
#:INACTIVE;MetaObjectVersion=""

Older tags

There are still older tags in the config files. For reasons of version management these comments stay in the config. However, please do not use them for new tagging anymore.

Older tags are:

Special tags under $CADENAS_DEFAULTUSER

TAG Description

#!

  • The tag corresponds to the context menu command Always overwrite [Overwrite always] under PARTadmin -> Configuration files at key level: Yellow background color

    The key value in $CADENAS_USER is overwritten again upon each load of the application.

  • The tag corresponds to the context menu command Overwrite under PARTadmin -> Configuration files at block level.

    Same blocks from $CADENAS_DEFAULTUSER and $CADENAS_USER are completely overwritten.

#-

  • The tag corresponds to the context menu command Delete under PARTadmin -> Configuration files at key level: Red background color

#~

  • The tag corresponds to the context menu command Do not merge under PARTadmin -> Configuration files at block level.

    Identical blocks from $CADENAS_DEFAULTUSER and $CADENAS_USER are not merged.