Skip to main content

DPF Mechanical 2026 R1

set_attribute class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.utility

Summary

Uses the FieldsContainer APIs to modify it.

available inputs: fields_container (FieldsContainer), property_name (string), property_identifier (LabelSpace) (optional)

available outputs: fields_container (FieldsContainer)

Example

op = set_attribute()

op = set_attribute(fields_container=my_fields_container,property_name=my_property_name,property_identifier=my_property_identifier)

Class Information

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

Inputs

fields_container

Type: LinkableInput

property_name

Supported property names are: "labels".

Type: LinkableInput

property_identifier

Value of the property to be set : vector of string or LabelSpace for "labels".

Type: LinkableInput

Outputs

fields_container

Returns the modified FieldsContainer.

Type: LinkableOutput

Constructors

Constructor

set_attribute()

Constructor

set_attribute(fields_container, property_name, property_identifier, config)

Parameters:

  • fields_container (object)
  • property_name (object)
  • property_identifier (object)
  • config (OperatorConfig)

Constructor

set_attribute(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