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

# Method ClearAndFillFromConfig

Namespace: [Phoenix.PaczAPI](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.PaczAPI)\
Assembly: Phoenix.PaczAPI.dll

## ClearAndFillFromConfig(VariableValueScope, IReadOnlyComponentConfig, bool, bool)

Clears the given scope of all variables and values, and then calls
`Phoenix.PaczAPI.VariableValueScopeExtensions.FillFromConfig(Phoenix.ModelCenter.Common.Types.VariableValueScope,Phoenix.PaczAPI.IReadOnlyComponentConfig,System.Boolean,System.Boolean)`

```csharp theme={null}
public static void ClearAndFillFromConfig(this VariableValueScope scope, IReadOnlyComponentConfig config, bool includeInputs = true, bool includeOutputs = true)

```

### Parameters

`scope` VariableValueScope

The scope to fill in

`config` [IReadOnlyComponentConfig](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.PaczAPI.IReadOnlyComponentConfig)

The configuration to read from

`includeInputs` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

Whether to include input variables in the scope

`includeOutputs` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

Whether to include output variables in the scope
