Skip to main content

DPF Mechanical 2026 R1

extract_sub_mc class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.utility

Summary

Creates a new meshes container with all the meshed regions corresponding to the label space in input 1. If pin 1 is not defined, pin 0 input will be copied to the output.

available inputs: meshes (MeshesContainer), label_space (LabelSpace, Scoping) (optional), collapse_labels (bool) (optional)

available outputs: meshes_container (MeshesContainer)

Example

op = extract_sub_mc()

op = extract_sub_mc(meshes=my_meshes,label_space=my_label_space,collapse_labels=my_collapse_labels)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.utility
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

meshes

meshes

Type: LinkableInput

label_space

Label space, or scoping defining the label space (scoping location), values to keep (scoping IDs)

Type: LinkableInput

collapse_labels

If set to true (default) the input label space (scoping location) is suppressed from the output meshes container, otherwise, label space is kept.

Type: LinkableInput

Outputs

meshes_container

meshes

Type: LinkableOutput

Constructors

Constructor

extract_sub_mc()

Constructor

extract_sub_mc(meshes, label_space, collapse_labels, config)

Parameters:

  • meshes (object)
  • label_space (object)
  • collapse_labels (object)
  • config (OperatorConfig)

Constructor

extract_sub_mc(config)

Parameters:

  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

# Get or set the property
value = obj.inputs
obj.inputs = new_value

outputs

Type: OutputSpec

# Get or set the property
value = obj.outputs
obj.outputs = new_value

defaultConfig

Type: Config

# Get the property (read-only)
value = obj.defaultConfig

Connect with Ansys