getChildrenInAssembly

Overview

This utility is used to get the Sub Model or Bodies of a Model or Sub Model.

Syntax

OutputList = simlab.getChildrenInAssembly("ModelName","ModelName or SubModelName","Method Type(SUBASSEMBLIES or BODIES or ALLBODIES)")

Method Type

  • SUBASSEMBLIES It returns the first level child sub models of the given model name or sub model name
  • BODIES It returns the first level bodies of the given model name or sub model name
  • ALLBODIES It returns all bodies of the given model name or sub model name

User Case

Below are some of the use cases of GetChildrenInAssembly.

  • To export any specific Sub-model or Bodies from the Database
  • To perform any operation on specific Sub-model or Bodies

Why we need this utility?

In case of assemblies having large number of Sub Assemblies, and we need to get each Sub Assembly as a separate database and work on them individually, we can use this utility to get the Sub Assemblies and export as separate database.

Utility Input/output

Sample