get_model_tree#

ansys.acp.core.get_model_tree(model, *, hide_empty=True, label_by_id=False)#

Get a tree representation of the model.

Returns the root node.

Parameters:
  • model (Model) – ACP model.

  • hide_empty (bool) – Whether to hide empty collections.

  • label_by_id (bool) – Prefer the ID over the name for the label of a node, for objects that have both.

Return type:

Node