utility:fields container get attribute
Last update: 31.07.2026Version: 0.0.0
Description
Uses the FieldsContainer APIs to return a given attribute of the fields container in input.
Inputs
This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.
| Pin number | Name | Status | Expected type(s) |
|---|---|---|---|
| 0 | fields_container | Required | fields_container |
| 1 | property_name | Required | string |
| 2 | property_identifier | string, int32 |
fields_container (Pin 0)
- Required: Yes
- Expected type(s):
fields_container
property_name (Pin 1)
- Required: Yes
- Expected type(s):
string
Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" and "field".
property_identifier (Pin 2)
Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping" or "field".
Outputs
This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.
| Pin number | Name | Expected type(s) |
|---|---|---|
| 0 | property | scoping, vector<int32>, time_freq_support, vector<string>, label_space, field |
property (Pin 0)
- Expected type(s):
scoping,vector<int32>,time_freq_support,vector<string>,label_space,field
Returns a Scoping for property: "label_scoping", a vector of int for "label_values", a time freq support for "time_freq_support", a vector of string for "labels", a LabelSpace for "field_scoping" and a "field" for "field".
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: utility
Plugin: core
Scripting name: fc_get_attribute
Full name: utility.fc_get_attribute
Internal name: fieldscontainer::get_attribute
License: None
Examples
These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("fieldscontainer::get_attribute"); // operator instantiation
op.connect(0, my_fields_container);
op.connect(1, my_property_name);
op.connect(2, my_property_identifier);
ansys::dpf::Scoping my_property = op.getOutput<ansys::dpf::Scoping>(0);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.utility.fc_get_attribute() # operator instantiation
op.inputs.fields_container.connect(my_fields_container)
op.inputs.property_name.connect(my_property_name)
op.inputs.property_identifier.connect(my_property_identifier)
my_property_as_scoping = op.outputs.property_as_scoping()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.utility.fc_get_attribute() # operator instantiation
op.inputs.fields_container.Connect(my_fields_container)
op.inputs.property_name.Connect(my_property_name)
op.inputs.property_identifier.Connect(my_property_identifier)
my_property = op.outputs.property.GetData()
Changelog
- Version 0.0.0: Initial release.