Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class Model

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll

This class is to represent model.

public class Model : FileGroup<model groupitem>, IFileGroup

Inheritance

objectGroupFileGroupModel

Implements

IFileGroup

Inherited Members

FileGroup.Path, Group.Initialize(), Group.Name, Group.SubGroups, Group.SubItems

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

Model()

Initializes a new instance of the class.

public Model()

Properties

DefaultDirectory

Gets the default directory.

public static string DefaultDirectory { get; }

Property Value

string

Toolkit

Gets or sets the toolkit.

public string Toolkit { get; set; }

Property Value

string

Methods

AddGroupItem(GroupItem)

Adds the group item.

public bool AddGroupItem(GroupItem item)

Parameters

item GroupItem

The item.

Returns

bool

true if success; otherwise, false.

AddInsertedFile(string)

Adds the inserted file.

public static void AddInsertedFile(string strFileName)

Parameters

strFileName string

Name of the STR file.

ClearInsertedFiles()

Clears the inserted files.

public static void ClearInsertedFiles()

FindGroup(GroupItem, List)

Finds the group.

public Model.ModelItemGroup FindGroup(GroupItem item, List<model> groups)

Parameters

item GroupItem

The item.

groups ListModel.ModelItemGroup&gt;

The groups.

Returns

Model.ModelItemGroup

GetALLFilterList()

Gets the all the filter list.

public List<string> GetALLFilterList()

Returns

Liststring&gt;

The filters.

GetDefaultLocation(bool, bool)

Gets the recent directory.

public static string GetDefaultLocation(bool bModel, bool bNew)

Parameters

bModel bool

if set to true [model].

bNew bool

if set to true [new].

Returns

string

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

GetFilterName(string)

Gets the name of the filter.

public string GetFilterName(string filter)

Parameters

filter string

The filter.

Returns

string

The filter name.

GetFullPath(string)

Gets the full path through relative path.

public string GetFullPath(string strRefDir)

Parameters

strRefDir string

The reference directory.

Returns

string

The full path.

GetGroupItemList()

Gets the group item list.

public List<groupitem> GetGroupItemList()

Returns

ListGroupItem&gt;

The group items.

GetGroupItemList(string)

Gets the group item list.

public List<groupitem> GetGroupItemList(string filter)

Parameters

filter string

The filter.

Returns

ListGroupItem&gt;

The group items.

GetInsertedFile()

Gets the inserted file.

public static List<string> GetInsertedFile()

Returns

Liststring&gt;

IsExistingItem(GroupItem)

Determines whether is existing item.

public bool IsExistingItem(GroupItem groupItem)

Parameters

groupItem GroupItem

The group item.

Returns

bool

true if is existing item; otherwise, false.

IsExistingItem(string, string)

Determines whether is existing item.

public bool IsExistingItem(string strRefDir, string strAbsolutePath)

Parameters

strRefDir string

The reference directory.

strAbsolutePath string

The absolute path.

Returns

bool

true if is existing item; otherwise, false.

IsExistingItemFromDirectory(string, string)

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

public bool IsExistingItemFromDirectory(string strRefDir, string strAbsoluteDirectory)

Parameters

strRefDir string

The STR ref dir.

strAbsoluteDirectory string

The STR absolute directory.

Returns

bool

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

IsExistingName(string)

Determines whether is existing name.

public bool IsExistingName(string ItemName)

Parameters

ItemName string

Name of the item.

Returns

bool

true if is existing name; otherwise, false.

SetDefaultLocation(string, bool, bool)

Sets the recent directory in registry.

public static bool SetDefaultLocation(string strPath, bool bModel, bool bNew)

Parameters

strPath string

The path of current work.

bModel bool

if set to true [model].

bNew bool

if set to true [new].

Returns

bool

true if success; otherwise, false.

Connect with Ansys