Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class Work

Last update: 16.07.2025

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

This class is to represent the work.

public class Work : FileGroup<Work.WorkGroup, GroupItem>, IFileGroup, IWorkGroup

Inheritance

object ← Group<Work.WorkGroup, GroupItem> ← FileGroup<Work.WorkGroup, GroupItem> ← Work

Implements

IFileGroup, IWorkGroup

Inherited Members

FileGroup<Work.WorkGroup, GroupItem>.Path, Group<Work.WorkGroup, GroupItem>.Initialize(), Group<Work.WorkGroup, GroupItem>.Name, Group<Work.WorkGroup, GroupItem>.SubGroups, Group<Work.WorkGroup, GroupItem>.SubItems

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

Work()

Initializes a new instance of the class.

public Work()

Work(string)

Initializes a new instance of the class.

public Work(string strFileName)

Parameters

strFileName string

Name of the file.

Work(string, bool)

Initializes a new instance of the class.

public Work(string strFileName, bool IsSettingCurrent)

Parameters

strFileName string

Name of the file.

IsSettingCurrent bool

if set to true [is setting current].

Properties

CurrentWork

Gets or sets the current work.

public static Work CurrentWork { get; }

Property Value

Work

CurrentWorkPath

Gets or sets the current work path.

public static string CurrentWorkPath { get; set; }

Property Value

string

SubModels

Gets or sets the sub models.

public List<Model> SubModels { get; set; }

Property Value

List<Model>

Methods

AddModel(Model)

Adds the model in work.

public bool AddModel(Model model)

Parameters

model Model

The new model.

Returns

bool

true if success; otherwise, false.

ClearCurrentWork()

Clear the current work.

public static void ClearCurrentWork()

GetActiveModel(string)

Gets the active model. If model has active item, it is active.

public Model GetActiveModel(string strItemPath)

Parameters

strItemPath string

The item path.

Returns

Model

The active model.

GetActiveModelFromDirectory(string)

Gets the active model from directory.

public Model GetActiveModelFromDirectory(string strItemDirectory)

Parameters

strItemDirectory string

The STR item directory.

Returns

Model

GetAllModels()

Gets all models.

public List<Model> GetAllModels()

Returns

List<Model>

The Models

GetModel(string)

Gets the model.

public Model GetModel(string strModelName)

Parameters

strModelName string

Name of the model.

Returns

Model

GetModelNameList()

Gets the model name list.

public List<string> GetModelNameList()

Returns

List<string>

The name of models.

Initialize()

Initializes this instance.

public override void Initialize()

Connect with Ansys