Skip to main content

ACP in-app scripting API 2026 R1

reorder_modeling_groups

Last update: 16.07.2026

Model.reorder_modeling_groups(source=[], target=None, option='after')

Reorders the modeling groups by placing source before or after the target.

Parameters

  • source: List of modeling groups to insert at the new position.
  • target: A modeling group which defines the position to insert the source.
  • option: Whether to insert the source before or after the target.

Usage

>>> model.reorder_modeling_groups(source=[modelmodeling_groups['DECK']], target=modelmodeling_groups['HULL'], option='before')

Connect with Ansys