Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Interface IPre

Last update: 16.07.2025

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

This interface is to represent Pre.

public interface IPre

Extension Methods

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

Properties

ActiveDocument

Gets the active document.

IDocument ActiveDocument { get; }

Property Value

IDocument

ActiveDocumentViewModel

Gets the active document view model

IDocumentViewModel ActiveDocumentViewModel { get; }

Property Value

IDocumentViewModel

ApplicationCore

Gets the application core.

Application ApplicationCore { get; }

Property Value

Application

DialogManager

Gets the dialog manager.

IDlgManager DialogManager { get; }

Property Value

IDlgManager

GlobalJournal

Gets the global journal.

JournalRecorder GlobalJournal { get; }

Property Value

JournalRecorder

LocalJournal

Gets the local journal.

JournalRecorder LocalJournal { get; }

Property Value

JournalRecorder

MainWindow

Gets the main window.

IMainWindow MainWindow { get; }

Property Value

IMainWindow

UnUseMRU

Gets or sets a value indicating whether [un use MRU].

bool UnUseMRU { get; set; }

Property Value

bool

Version

Gets the version.

string Version { get; }

Property Value

string

WriteDFG

Gets or sets the WriteDFG flag.

bool WriteDFG { get; set; }

Property Value

bool

Methods

AutoSave()

Auto save.

void AutoSave()

CanSimulation(bool)

Determines whether this instance can simulation the specified b can.

void CanSimulation(bool bCan)

Parameters

bCan bool

if set to true [b can].

ClearMessage(string)

Clear Text.

void ClearMessage(string strName)

Parameters

strName string

Name.

CloseAllFile()

Closes all file.

void CloseAllFile()

CloseAllFileExceptWork()

Closes all file except work.

void CloseAllFileExceptWork()

CloseDocument(Document)

Closes the file.

bool CloseDocument(Document doc)

Parameters

doc Document

The to close.

Returns

bool

CloseFile(string)

Closes the file.

bool CloseFile(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

bool

true if success; otherwise, false.

CloseFile(string, bool)

Closes the file.

bool CloseFile(string strFileName, bool bUseWork)

Parameters

strFileName string

Name of the STR file.

bUseWork bool

if set to true [b use work].

Returns

bool

CloseFile(string, bool, bool)

Closes the file.

bool CloseFile(string strFileName, bool bUseWork, bool bActivate)

Parameters

strFileName string

Name of the string file.

bUseWork bool

if set to true [b use work].

bActivate bool

if set to true [b activate].

Returns

bool

CloseHiddenFile(string)

Closes the hidden file.

bool CloseHiddenFile(string strFileName)

Parameters

strFileName string

Name of the string file.

Returns

bool

CloseWork()

Close work.

void CloseWork()

CreateDocument(string)

Creates the document.

Document CreateDocument(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

Document

The document.

CreateDocument(string, bool)

Creates the document.

Document CreateDocument(string strFileName, bool bActivate)

Parameters

strFileName string

Name of the file.

bActivate bool

if set to true [b activate].

Returns

Document

The document.

CreateDocument(string, bool, string)

Creates the document.

Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo)

Parameters

strFileName string

Name of the STR file.

bActivate bool

if set to true [b activate].

strDocCreateInfo string

The STR doc create info.

Returns

Document

CreateDocument(string, bool, string, bool)

Creates the document.

Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo, bool bDesigner)

Parameters

strFileName string

Name of the string file.

bActivate bool

if set to true [b activate].

strDocCreateInfo string

The string document create information.

bDesigner bool

if set to true [b designer].

Returns

Document

EndOutput(string)

Ends the output.

void EndOutput(string strName)

Parameters

strName string

Name.

Fit(string)

Fits this instance.

void Fit(string strPathName)

Parameters

strPathName string

Name of the string path.

GetAllOpenDocument()

Gets all opend document.

List<document> GetAllOpenDocument()

Returns

List

GetDocumentFromOpenedDocument(string)

Gets the document from opened document.

Document GetDocumentFromOpenedDocument(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

Document

GetMode()

Gets the mode.

string GetMode()

Returns

string

The mode type

IsOpenDocument(string)

Determines whether [is open document] [the specified STR file name].

bool IsOpenDocument(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

bool

true if [is open document] [the specified STR file name]; otherwise, false.

IsRunningSimulation()

Determines whether [is running simulation].

bool IsRunningSimulation()

Returns

bool

NewFile(NewFile)

New file.

void NewFile(NewFile nf)

Parameters

nf NewFile

The new file information.

NewModel(NewModel)

New model.

void NewModel(NewModel nM)

Parameters

nM NewModel

The new model information.

OpenDocument(string)

Opens the document.

Document OpenDocument(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

Document

The document.

OpenDocument(string, bool)

Opens the document.

Document OpenDocument(string strFileName, bool bActivate)

Parameters

strFileName string

Name of the file.

bActivate bool

if set to true [b activate].

Returns

Document

The document.

OpenDocumentFile(string)

Opens the document file.

Document OpenDocumentFile(string strFileName)

Parameters

strFileName string

Name of the STR file.

Returns

Document

OpenFile(string, string)

Opens the file.

GroupItem OpenFile(string strFileName, string strRefDir)

Parameters

strFileName string

Name of the file.

strRefDir string

The reference directory.

Returns

GroupItem

The file informaton class.

OpenFileDialogAsMainWindow(OpenFileDialogInfo)

Opens the file dialog as main window.

string OpenFileDialogAsMainWindow(OpenFileDialogInfo info)

Parameters

info OpenFileDialogInfo

The info.

Returns

string

the file name

OpenHiddenDocument(object)

Opens the hidden document.

Document OpenHiddenDocument(object obj)

Parameters

obj object

The object.

Returns

Document

OpenModel(string)

Opens the model.

Model OpenModel(string strFileName)

Parameters

strFileName string

Name of the file.

Returns

Model

The model.

OpenWork(string)

Opens the work.

Work OpenWork(string strFileName)

Parameters

strFileName string

Name of the STR file.

Returns

Work

PrepareSimulation()

Prepares the simulation.

bool PrepareSimulation()

Returns

bool

true if success; otherwise, false.

ReadAllText(string, string)

Reads all text.

void ReadAllText(string strPath, string strName)

Parameters

strPath string

The path.

strName string

Name.

ReadAllText(string, string, bool)

Reads all text.

void ReadAllText(string strPath, string strName, bool bDeleteFile)

Parameters

strPath string

The path.

strName string

Name.

bDeleteFile bool

if set to true [b delete file].

SaveAllFile()

Saves all file.

SaveAllResult SaveAllFile()

Returns

SaveAllResult

SaveFile()

Save the file.

void SaveFile()

SaveFile(string)

Saves the file.

void SaveFile(string strPath)

Parameters

strPath string

The path.

SaveFile(Document, string)

Saves the file.

void SaveFile(Document doc, string strFileName)

Parameters

doc Document

The doc.

strFileName string

Name of the STR file.

SaveFile(Document, string, bool)

Saves the file.

void SaveFile(Document doc, string strFileName, bool bIgnoreExternChange)

Parameters

doc Document

The doc.

strFileName string

Name of the STR file.

bIgnoreExternChange bool

if set to true [b ignore extern change].

SaveFileDialogAsMainWindow(SaveFileDialogInfo)

Saves the file dialog as main window.

string SaveFileDialogAsMainWindow(SaveFileDialogInfo info)

Parameters

info SaveFileDialogInfo

The info.

Returns

string

the file name

SaveModel(string)

Saves the model.

void SaveModel(string strFileName)

Parameters

strFileName string

Name of the file.

SaveWork(string)

Saves the work.

void SaveWork(string strFileName)

Parameters

strFileName string

Name of the file.

SetEnableOfTabCtrl(object, bool)

Sets enable or disable of Tab..

void SetEnableOfTabCtrl(object obj, bool bEnable)

Parameters

obj object

The current document.

bEnable bool

if set to true [is enable].

SetIntervalForAutoSize()

Sets the size of the interval for auto.

void SetIntervalForAutoSize()

SetPathName(string, string)

Set path name.

void SetPathName(string strOldPath, string strNewPath)

Parameters

strOldPath string

The old path.

strNewPath string

The new path.

SetProgressState(int)

Set taskbar progress state.

void SetProgressState(int nStats)

Parameters

nStats int

0x0 : NOPROGRESS, 0x1 : INDETERMINATE, 0x2 : NORMAL, 0x4 : ERROR, 0x8 : PAUSED

SetProgressValue(ulong, ulong)

Set taskbar progress value.

void SetProgressValue(ulong nCompleted, ulong nTotal)

Parameters

nCompleted ulong

The completed value.

nTotal ulong

The total value.

SetSimulationParameters(string, string)

Sets the simulation parameters.

bool SetSimulationParameters(string strEndTime, string strStepSize)

Parameters

strEndTime string

The end time.

strStepSize string

Size of the step.

Returns

bool

true if success; otherwise, false.

SetStatusBar(string)

Set status bar.

void SetStatusBar(string strMessage)

Parameters

strMessage string

The message.

StartOperationStatus()

Starts the operation status.

void StartOperationStatus()

StartOutput(string, string)

Starts the output.

void StartOutput(string strPath, string strName)

Parameters

strPath string

The path.

strName string

Name.

OnActiveDocumentChanged

Occurs when [on active document changed].

event EventHandler OnActiveDocumentChanged

Event Type

EventHandler

OnActiveViewChanged

Occurs when [on active view changed].

event EventHandler OnActiveViewChanged

Event Type

EventHandler

Connect with Ansys