|
Kit data files |
Scroll |
A kit data file contains information required to run the kit components: search for them, run them, connect them at the startup of KOMPAS-3D and so on. The extension of the kit data file is kit.config.
You can save the information about the current contents of the kit into the kit data file. You can use this file to restore the information about the configuration of the kit in the same workstation or in another workstation. Reading and writing of *.kit.config files are performed in the dialog Configurator using commands from the menu File.
|
System settings and new document settings are not stores in the kit data file. The commands Setting — Save/Load parameters... commands are used for their writing and reading. |
The data about the default composition of the <{PRODUCT_NAME}> kit (i.e., the composition at the time of installation) is stored in the base.kit.config, mcad.kit.config, and ecad.kit.config files
The folder for these files can be set in the ini file using the DefaultKitConfigs key (in the absence of the ini file, the default key value is used).
The same folder contains the file aec.kit.config with information about the default contents of the Design Configuration kit.
The default *.kit.config files specify the paths to the components relative to the folders, the paths to which, in turn, are set by keys:
• Apps — for add-ons,
• Libs — for libraries,
• Utils — for utilities.
(in the absence of an ini file, the default key values are used).
Upon the first launch of KOMPAS-3D, the kompas.kit.config file is created — a user configuration data file. This file contains the information about all the available components, that is, all the information about all the default *.kit.config. files.
If the configuration changes during the work with KOMPAS-3D, for example, components are added or removed, libraries and add-ons are connected/disconnected, all these changes are recorded in the kompas.kit.config file.
On the next launch of KOMPAS-3D, the kit composition information will be taken from the kompas.kit.config file.
If during the next launch of KOMPAS-3D the kompas.kit.config file is not found, it will be recreated — just as it is during the first launch.
The folder for placing the kompas.kit.config file is defined by the kompas.kit.config It can be set in an ini file using a key KitConfig (in the absence of an ini file, the default key value is used).
|
The kompas.kit.config file contains absolute paths to the components. |
|
Kompas.kit.config is the name of the custom kit data file for the professional version of KOMPAS-3D. For other product modifications, the names given in the table. |
Creating and using a default kit data file
If it is required to use the same set of add-ons, libraries, and utilities on several workstations KOMPAS-3D, it is necessary to manually create a default data file for the set and use it on all these workstations.
Step-by-step instructions
1.Install KOMPAS-3D and configurations on one of workstations.
2.If necessary, create at this workplace ini-file and specify the paths:
•In the Apps key — the path to the folder with KOMPAS add-ons,
•In the Libs key — the path to the folder with KOMPAS libraries,
•In the Utils key — the path to the folder with utilities.
3.Save the ini file and restart KOMPAS-3D.
4.Call the KOMPAS-3D command Configurator applications.... In the Configurator dialog that appears, follow these steps:
4.1. Set up the kit configuration if needed: you can add or remove applications, libraries and tools.,
4.2. Save the configuration in a *.kit.config file using the File — Save Configuration command in the Configurator dialog menu.
5.Install KOMPAS-3D on all other workstations and replace all default kit data files with the created *.kit.config file (i.e. all *.kit.config files in the folder specified by key DefaultKitConfigs).
The name of the *.kit.config file you've created may not be the same as the reserved names:
•base.kit.config,
•mcad.kit.config,
•ecad.kit.config,
•aec.kit.config.
If you follow this condition, the data file will not be deleted when you reinstall or update KOMPAS-3D. After reinstalling or updating, delete all other *.kit.config files that appear in the folder specified by key KitConfigs.
Please note the following concerning reading and writing the *.kit.config files:
•Reading:
•If an application, a library or an utility is not found in the specified folder, then this component is not added to the configuration (that is, it is not displayed in the list in the Configurator dialog box). If an utility is missing, the software alto tries to locate it in the paths determined by the system variable.%PATH%.
•Writing:
•Information about built-in add-ons is not included in the file.
•If the add-on (library, utility) is in the folder determined by the folder, specified by key App (Libs, Utils), then the path to this component relative to this folder is written to the *.kit.config file. Otherwise (for example, if the configuration contains utilities found on the path specified in the %PATH% system variable), the full path is written. Therefore, in order for the saved *.kit.config to be universal and can be used as a default, check it and, if necessary, correct the paths (values of the path attribute), replacing the absolute ones with relative ones. The *.kit.config file can be opened with any text editor.