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

# Class Model

Namespace: [VM.Managed.DAFUL.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre)\
Assembly: dfpredat.dll

This class is to represent model.

```csharp theme={null}
public class Model : FileGroup<Model.ModelItemGroup, GroupItem>, IFileGroup
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Group\<Model.ModelItemGroup, GroupItem>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Group-2.md) ←
[FileGroup\<Model.ModelItemGroup, GroupItem>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.FileGroup-2.md) ←
[Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.md)

#### Implements

[IFileGroup](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.IFileGroup.md)

#### Inherited Members

[FileGroup\<Model.ModelItemGroup, GroupItem>.Path](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.FileGroup-2.md#VM_Managed_DAFUL_Pre_FileGroup_2_Path),
[Group\<Model.ModelItemGroup, GroupItem>.Initialize()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Group-2.md#VM_Managed_DAFUL_Pre_Group_2_Initialize),
[Group\<Model.ModelItemGroup, GroupItem>.Name](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Group-2.md#VM_Managed_DAFUL_Pre_Group_2_Name),
[Group\<Model.ModelItemGroup, GroupItem>.SubGroups](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Group-2.md#VM_Managed_DAFUL_Pre_Group_2_SubGroups),
[Group\<Model.ModelItemGroup, GroupItem>.SubItems](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Group-2.md#VM_Managed_DAFUL_Pre_Group_2_SubItems)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Model()

Initializes a new instance of the [Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.md) class.

```csharp theme={null}
public Model()
```

## Properties

### DefaultDirectory

Gets the default directory.

```csharp theme={null}
public static string DefaultDirectory { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Toolkit

Gets or sets the toolkit.

```csharp theme={null}
public string Toolkit { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### AddGroupItem(GroupItem)

Adds the group item.

```csharp theme={null}
public bool AddGroupItem(GroupItem item)
```

#### Parameters

`item` [GroupItem](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.GroupItem.md)

The item.

#### Returns

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

`true` if success; otherwise, `false`.

### AddInsertedFile(string)

Adds the inserted file.

```csharp theme={null}
public static void AddInsertedFile(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

### ClearInsertedFiles()

Clears the inserted files.

```csharp theme={null}
public static void ClearInsertedFiles()
```

### FindGroup(GroupItem, List\<ModelItemGroup>)

Finds the group.

```csharp theme={null}
public Model.ModelItemGroup FindGroup(GroupItem item, List<Model.ModelItemGroup> groups)
```

#### Parameters

`item` [GroupItem](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.GroupItem.md)

The item.

`groups` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.md).[ModelItemGroup](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.ModelItemGroup.md)>

The groups.

#### Returns

[Model](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.md).[ModelItemGroup](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Model.ModelItemGroup.md)

### GetALLFilterList()

Gets the all the filter list.

```csharp theme={null}
public List<string> GetALLFilterList()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The filters.

### GetDefaultLocation(bool, bool)

Gets the recent directory.

```csharp theme={null}
public static string GetDefaultLocation(bool bModel, bool bNew)
```

#### Parameters

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

if set to `true` \[model].

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

if set to `true` \[new].

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

`The name of recent directory` if success; otherwise, `null`.

### GetFilterName(string)

Gets the name of the filter.

```csharp theme={null}
public string GetFilterName(string filter)
```

#### Parameters

`filter` [string](https://learn.microsoft.com/dotnet/api/system.string)

The filter.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The filter name.

### GetFullPath(string)

Gets the full path through relative path.

```csharp theme={null}
public string GetFullPath(string strRefDir)
```

#### Parameters

`strRefDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The reference directory.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The full path.

### GetGroupItemList()

Gets the group item list.

```csharp theme={null}
public List<GroupItem> GetGroupItemList()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[GroupItem](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.GroupItem.md)>

The group items.

### GetGroupItemList(string)

Gets the group item list.

```csharp theme={null}
public List<GroupItem> GetGroupItemList(string filter)
```

#### Parameters

`filter` [string](https://learn.microsoft.com/dotnet/api/system.string)

The filter.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[GroupItem](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.GroupItem.md)>

The group items.

### GetInsertedFile()

Gets the inserted file.

```csharp theme={null}
public static List<string> GetInsertedFile()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

### IsExistingItem(GroupItem)

Determines whether is existing item.

```csharp theme={null}
public bool IsExistingItem(GroupItem groupItem)
```

#### Parameters

`groupItem` [GroupItem](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.GroupItem.md)

The group item.

#### Returns

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

`true` if is existing item; otherwise, `false`.

### IsExistingItem(string, string)

Determines whether is existing item.

```csharp theme={null}
public bool IsExistingItem(string strRefDir, string strAbsolutePath)
```

#### Parameters

`strRefDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The reference directory.

`strAbsolutePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The absolute path.

#### Returns

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

`true` if is existing item; otherwise, `false`.

### IsExistingItemFromDirectory(string, string)

Determines whether \[is existing item from directory] \[the specified STR ref dir].

```csharp theme={null}
public bool IsExistingItemFromDirectory(string strRefDir, string strAbsoluteDirectory)
```

#### Parameters

`strRefDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The STR ref dir.

`strAbsoluteDirectory` [string](https://learn.microsoft.com/dotnet/api/system.string)

The STR absolute directory.

#### Returns

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

`true` if \[is existing item from directory] \[the specified STR ref dir]; otherwise, `false`.

### IsExistingName(string)

Determines whether is existing name.

```csharp theme={null}
public bool IsExistingName(string ItemName)
```

#### Parameters

`ItemName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the item.

#### Returns

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

`true` if is existing name; otherwise, `false`.

### SetDefaultLocation(string, bool, bool)

Sets the recent directory in registry.

```csharp theme={null}
public static bool SetDefaultLocation(string strPath, bool bModel, bool bNew)
```

#### Parameters

`strPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path of current work.

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

if set to `true` \[model].

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

if set to `true` \[new].

#### Returns

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

`true` if success; otherwise, `false`.
