How to use GetChildren()?

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 414
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How to use GetChildren()?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 414
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓
    Options

    The methond GetChildren is often helpful for filtering and grouping DataModelObjects. It takes the Enum - DataModelObjectCategory as a first argument and a boolean as a second argument to switch on recursive search (sub-folders etc.)

    solution.GetChildren(DataModelObjectCategory.TreeGroupingFolder, True)