Adams Basic Package > Adams Explore > Customizing Adams Explore

Customizing Adams Explore

There are several ways to make Adams Explore support company workflow and customizations made to Adams.

Using Site and Plug-Ins not in the Installation Directory

If a site or custom plug-ins located elsewhere than in the installation are to be used.
Create a bat file with the following contents:
rem Set site
set MDI_ACAR_SITE=C:\My_Corporation\acar_site
 
rem Set plugin
set MDI_USER_PLUGIN_DIR=C:\My_Corporation\our_component_plg
 
rem Call Adams Car
rem First argument can be b or i and second argument is the cmd file that
rem should be run
call "C:\Program Files\MSC.Software\Adams\2022_4\common\mdi.bat" acar ru-acar %1 %2 &
Use this file as the Adams Car launch command in the analysis tab.

Using Adams Explore with aview.cmd, AcarAS.cmd, acar.cmd and so on

Adams Explore will look for a file called "aexplore.cmd" in the server working directory. If it is found, it will be read in as the second action of Adams after the Adams Explore Plug-in is loaded.
Simply refer to any cmd files that should be read before the workbook file is imported or write customization commands here.

Changing Default Computer Node and Launch Command

In the database under the aexplore library there is a settings library. Directly under this library variables which contain values for default port and adams launch commands are located. The launch command variables get their values upon loading of the aexplore plugin.
The buttons "Use default" in the analyses tab will insert the value stored in the variables
.aexplore.settings.default_port
.aexplore.settings.default_analysis_machine
.aexplore.settings.default_adams_car_launch_command
in the respective fields in the export dialog box. Changing these variables will update the defaults. To get a permanent change in default value a macro called "load_custom_aexplore_plugin_end" containing the changes can be created anywhere in the database. This macro will be executed at the end of loading the plugin at the macro injection slot of the explore load macro.

Miscellaneous Settings

In the database under the aexplore library there is a settings library. When exporting and importing the settings in the variable trees below are used.
.aexplore.settings.default_settings_acar
.aexplore.settings.default_settings_aview
For example running the commands
!number of cells wide
var set var=.aexplore.settings.default_settings_acar.page_sheet.page_width int=12
!number of cells high
var set var=.aexplore.settings.default_settings_acar.page_sheet.page_height int=27
will change the dimensions of the plots in the returned Excel sheets.
Also for example settings for what the user can change and colors of the sheet are available.
 
Note:  
Changes to the variables should be done in the aexplore.cmd file placed in the server working directory if the servers are used for importing.

Macro Injection Slots

At several locations in the Adams Car and Adams View export and import macros there are so called macro injection slots.
These are points at which a macro with a specific name is searched for in the database. If such is found then it will be executed.