The menu of predefined assessment types can be controlled by editing the AttributeTemplate.xml file in the {ANSYS Installation}\v182\Addins\Simulation folder. This file defines what entries appear in the menu when it is selected, along with the order of the entries and the default entry. The User Defined entry is always shown on the Assessment Type menu in addition to the predefined assessment types.
The following example defines the standard entries on the Assessment Type menu:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <AttributeTemplates> <AttributeList> <Attribute> <Name>FATJACK (Beam Joint Fatigue)</Name> <File>DA_FATJACK.xml</File> <Priority>1.1</Priority> <ValidOn>Windows</ValidOn> </Attribute> <Attribute> <Name>BEAMCHECK (Beam and Joint Strength)</Name> <File>DA_BEAMST.xml</File> <Priority>1.2</Priority> <ValidOn>Windows</ValidOn> </Attribute> <Attribute> <Default>true</Default> <Name>Solution Combination Only</Name> <File>DA_SolutionCombinations.xml</File> <Priority>1.5</Priority> <ValidOn>Windows,Linux</ValidOn> </Attribute> </AttributeList> </AttributeTemplates>
Each menu entry is defined using an Attribute XML block.
The following tags can be defined in the
<Attribute></Attribute> block.
Name: The name that the user will see in the menu.
File: The XML definition file that is passed to Mechanical. If the full path to the file is omitted, the location is assumed to be in the {ANSYS Installation}\v182\aisol\DesignSpace\DSPages\xml folder.
Priority: The position in the menu, entered as 1.1 - 1.xxx.
Default: Specifies which entry is the default.
Include this tag with a value of true for the entry that is
to be the default option (omit it for other entries).
ValidOn: Specifies which platforms are supported
for the entry. Available options are Windows and
Linux. To specify both platforms, separate entries with a
comma (Windows,Linux).