> ## 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.

# extract_sub_sc class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

Creates a new scopings container with all the scopings 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: `scopings_container` (ScopingsContainer), `label_space` (LabelSpace, Scoping) (optional), `collapse_labels` (bool) (optional)

available outputs: `scopings_container` (ScopingsContainer)

## Example

```python theme={null}
op = extract_sub_sc()

op = extract_sub_sc(scopings_container=my_scopings_container,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

### scopings\_container

scopings\_container

**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 scopings container, otherwise, label space is kept.

**Type:** *LinkableInput*

## Outputs

### scopings\_container

scopings\_container

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
extract_sub_sc()
```

#### Constructor

```python theme={null}
extract_sub_sc(scopings_container, label_space, collapse_labels, config)
```

**Parameters:**

* `scopings_container` (*object*)
* `label_space` (*object*)
* `collapse_labels` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
extract_sub_sc(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
