getSelectedEntities

Overview

This utility is used to get the selected entities such as FACE/EDGE/VERTEX/ELEMENT/NODE.

Syntax

EntityIds=simlab.getSelectedEntities("Entity Type(FACE/EDGE/VERTEX/ELEMENT/NODE)")

User Case

Below are some of the use cases of getSelectedEntities utility.

  • To get any manual entity input from user during execution of script
  • Used in creation of Custom dialogs
  • In the below example the entities selected by the User is used to create groups

Why we need this utility?

This will be useful in case where the inputs for any operation recorded in the scripts require a manual input from the user at the time of script execution. For example, if the user needs to apply load on a node at a specific position on the body, this utility can be used to get the node selected by the user and apply the load on it.

Utility Input/output

Sample