> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DVS Metadata

Part of [Dynamic Visualization Store](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/group__dvs__main)

#### Table of Contents

* [DVS Dataset Metadata](#dvs_dataset_metadata)
* [DVS Part Metadata](#dvs_part_metadata)
* [DVS Plot Metadata](#dvs_plot_metadata)
* [DVS Variable Metadata](#dvs_variable_metadata)

### DVS Dataset Metadata

The DVS API supports writing dataset metadata via the [dvs\_add\_metadata()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__api_8h#ac5c67fdc3806bf89eebbe49e6daea5c2) or [DVS::IClient::add\_metadata()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_client.md#ab4144e59bfdcf9c095c6510c4298d160) methods for the C/C++ API (similarly named methods for the Python API). This must be done during the initialization step between begin\_init and end\_init.

#### Supported EnSight Dataset Metadata

The EnSight DVS reader reserves specific metadata key/value pairs for specific operations within EnSight. Below is a list of currently supported tags.

| KEY | VALUE/DESCRIPTION |
| - | - |
| \_DVS::REMOVE\_ELEMENT\_VAR | The name of the variable definition being used to filter elements, see [EnSight DVS Element Filtering](#dvs_element_filtering) |
| \_DVS::REMOVE\_ELEMENT\_FILTER | The logical equation to use when filtering elements based on a variable's value, see [EnSight DVS Element Filtering](#dvs_element_filtering) |

#### EnSight DVS Element Filtering

EnSight will automatically filter out elements based on a scalar variable value if the metadata tags are set on a dataset. To do this you first set \_DVS::REMOVE\_ELEMENT\_VAR to the name of the variable definition that will be used and then set \_DVS::REMOVE\_ELEMENT\_FILTER to the filtering equation. The filtering equation follows the standard format for [Query Stanzas](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/group__group__dvs__filtering.md#dvs_query_stanzas). There are some limitations however. Element filtering only works with scalar variables and the object/attribute must be "var.value". It also only supports the operators gt (>), lt (\<), eq (==), and neq (!=). Lastly it only works for a max of 2 chained query stanzas. A few examples should help this make sense.

#### Example 1

A user would like to filter out elements if the value of "my\_filter\_var" is equal to 1.1 or 1.2.

| KEY | VALUE |
| - | - |
| \_DVS::REMOVE\_ELEMENT\_VAR | my\_filter\_var |
| \_DVS::REMOVE\_ELEMENT\_FILTER | /var.value/eq/1.1//or/var.value/eq/1.2 |

#### Example 2

A user would like to filter out elements based on the variable "pressure" if they are above the threshold of 2.0 and below the threshold of 15.4.

| KEY | VALUE |
| - | - |
| \_DVS::REMOVE\_ELEMENT\_VAR | pressure |
| \_DVS::REMOVE\_ELEMENT\_FILTER | /var.value/gt/2.0//and/var.value/lt/15.4 |

#### Example 3

A user would like to filter out elements based on the variable "delete\_element" if the value is not equal to 1.0.

| KEY | VALUE |
| - | - |
| \_DVS::REMOVE\_ELEMENT\_VAR | delete\_element |
| \_DVS::REMOVE\_ELEMENT\_FILTER | /var.value/neq/1.0 |

### DVS Part Metadata

The DVS API supports writing part metadata via [dvs\_add\_part\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__api_8h#a4e8a904ae19fd7f2b0c300543bc42576) or [DVS::IClient::add\_part\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_client.md#a5e9ee6af237e76a6e270d99ec8cd4388) methods for the C/C++ API through the [dvs\_part\_info::\_metadata\_keys](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__part__info.md#aef3ab830a0bfcab49d9cbed978e315c2) and [dvs\_part\_info::\_metadata\_vals](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__part__info.md#a59c04a77c663b68008a1f69b62574337). The Python API method is dvs\_add\_part\_info and metadata is passed via the tags dictionary on an object.

#### Supported EnSight Part Metadata

| KEY | VALUE |
| - | - |
| \_DVS::PATHNAME | Used to setup groups in the user interface. eg. My\|Group would create 2 group levels (My->Group) and put the part under the "Group" group. |
| \_DVS::OBJATTR | See [https://nexusdemo.ensight.com/docs/python/html/Python.html?ENS\_OBJATTRSchema.html](https://nexusdemo.ensight.com/docs/python/html/Python.html?ENS_OBJATTRSchema.html) |
| \_DVS::KIND | Used to set part kind. eg. Inlet |
| \_DVS::NO\_AUTOLOAD | Set to anything to not autoload the part when EnSight loads the dataset. Part must be manually loaded. |

### DVS Plot Metadata

The DVS API supports writing plot metadata via [dvs\_add\_plot\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__api_8h#afe298f932fd909b7caabd6f430489b16) or [DVS::IClient::add\_plot\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_client.md#a1bdb7ca9cf25c63e533f47fe26132af6) methods for the C/C++ API through the [dvs\_plot\_info::\_metadata\_keys](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__plot__info.md#a6182c10a62849ada795123fd6707d612) and [dvs\_plot\_info::\_metadata\_vals](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__plot__info.md#a467b2e79ceb431c9358423647de59699). The Python API method is dvs\_add\_plot\_info and metadata is passed via the tags dictionary on an object.

### DVS Variable Metadata

The DVS API supports writing variable metadata via [dvs\_add\_var\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__api_8h#a0b9bbed0db0a5f3e91af8a02aed48e1e) or [DVS::IClient::add\_var\_info()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_client.md#a82f841d7f6f33071bf8c709623ca215d) methods for the C/C++ API through the [dvs\_var\_info::\_metadata\_keys](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__var__info.md#a9c656726edeeb5c0cf5b9a42f870b3a2) and [dvs\_var\_info::\_metadata\_vals](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/structdvs__var__info.md#abe0afbff61a368336c7750c831a3c056). The Python API method is dvs\_add\_var\_info and metadata is passed via the tags dictionary on an object.
