1.7.2. Editing configuration files on file level

1.7.2.1. Translation of "Short description"

[Important]Important

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

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

For example, this can make sense for the new creation of files or setting special tags to control 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 for 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 listing describes TAGs for placing help texts

The following listing describes 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

Some 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 Overwrite always under PARTadmin -> Configuration files on 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 on 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 on key level: Red background color

#~

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

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