Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Save Weld Configuration Save Weld Configuration

Click “Save Weld Configuration” to save all or selected Add Fillet Welds, Add Butt Welds and Weld Result objects from the active analysis to a “json” file (“WeldToolkit.json”) in the solution folder subfolder “WeldToolkit”, see example below.

If the file exists a “Save as” window is opened to select new file name and location to save the file.

The exported objects are listed in the ACT log window as a confirmation.

Import Weld Configuration Import Weld Configuration

Click “Import Weld Configuration” to imports all Add Fillet Welds, Add Butt Welds and Weld Result objects in the active analysis from a selected “json” file using file browsing window.
The current solution folder subfolder “WeldToolkit” is the default folder.

If an object with the same name already exists in the tree the import of that object is skipped.

filePy Weld Configuration File Syntax

The file format is based on “json”, a modern object-oriented syntax that can be edited using a modern text editor (e.g. Visual Studio Code) and easily imported in e.g. Python.

The created file may be used as a template for automation tasks, i.e. to create the file with an external tool or Ansys Wizard and then use “Import Weld Strength Configuration” to create the objects in the file.

Use “Named Selections” in the scooping to make the configuration file more generic in case replacing the geometry.

  • The syntax follows the underlying structure of ACT and how the properties are accessed by the app using the exact same property names and structure.
  • The text file is grouped by “Load Objects” such as “Fillet Welds Group” and their “Children” and “Result Objects” such as the “Fillet Weld Strength” etc.
  • For each type there are several parameters that can be defined. If a parameter is omitted the default value will be used.
  • Geometry is defined either by a list of “Ids”, e.g. “[1842, 1846, 1838, 1850]” or an existing “Named Selection” name, e.g. “Weld_A_section”.
  • Material is defined by an existing material name in the current analysis or one of the default materials name.
  • Property values are defined with a unit string when needed. Decimal point must be used.
  • Properties that use a “selection” menu is defined with the default “Value”. The valid (static) options is defined in the “Options” list.

The template file below can be copied by clicking in the upper right corner of the code window.

// WeldToolkit_V242.1_Template.json
{
}