How to use GetChildren()?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 442
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭
edited June 2023 in Structures

How to use GetChildren()?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 442
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    Answer ✓

    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)