getModelName

Overview

This utility is used to get the name of the model in database. Based on the model type (FEM (or) CAD) it returns the first model name of the current GDA.

Syntax

OutModelName = simlab.getModelName("ModelType (FEM (or) CAD)")

User Case

Below are some of the use cases where getModelName will be useful to make the script generic.

  • To generate surface mesh on the CAD model

  • To perform all operations on the FEM model (such as node matching, volume mesh, model setup)

Why we need this utility?

To perform operations in SimLab, we need the corresponding CAD/FEM model name. To obtain the name of last created CAD/FEM model, we can make use this utility. Using the model name, we can perform SimLab operations on the model.

Utility Input/output

Sample