Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Interface IDocument

Last update: 16.07.2025

Namespace: VM.Models.Pre
Assembly: VM.Models.Pre.dll

This interface represents the document object of the Motion Preprocessor

public interface IDocument : IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID

Implements

IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType), IDocumentExtensions.IsExistNameInDocument(IDocument, string)

Properties

DoingClose

bool DoingClose { get; }

Property Value

bool

DoingOpen

bool DoingOpen { get; }

Property Value

bool

FilePath

string FilePath { get; }

Property Value

string

InitialConvertFactor

Unit.ConvertFactor InitialConvertFactor { get; }

Property Value

Unit.ConvertFactor

Modified

bool Modified { get; set; }

Property Value

bool

Name

string Name { get; set; }

Property Value

string

Methods

DisplayModeShape(int, double)

void DisplayModeShape(int modeSequence, double scale)

Parameters

modeSequence int

scale double

FastToConvertUnitLength(bool)

double FastToConvertUnitLength(bool reverse)

Parameters

reverse bool

Returns

double

FindObjectFromID(Identifier)

IObject FindObjectFromID(Identifier identifier)

Parameters

identifier Identifier

Returns

IObject

FindObjectFromKey(UIntPtr)

Find object from key.

IObject FindObjectFromKey(UIntPtr key)

Parameters

key UIntPtr

The key.

Returns

IObject

Find object

GetChildren()

IEnumerable<IObject> GetChildren()

Returns

IEnumerable<IObject>

GetCopyOfKernelUnit()

Unit GetCopyOfKernelUnit()

Returns

Unit

GetCopyOfUnit()

Unit GetCopyOfUnit()

Returns

Unit

GetNextIdentifier()

Identifier GetNextIdentifier()

Returns

Identifier

Save(string)

void Save(string path)

Parameters

path string

ChildAdded

Raised when a child object is added

event EventHandler<Identifier> ChildAdded

Event Type

EventHandler<Identifier>

ChildRemoved

Raised when a child object is removed

event EventHandler<Identifier> ChildRemoved

Event Type

EventHandler<Identifier>

ChildReplaced

Raised when child is replaced by another object

event EventHandler<Identifier> ChildReplaced

Event Type

EventHandler<Identifier>

ChildReplacing

Raised when child is about to be replaced with another object

event EventHandler<Identifier> ChildReplacing

Event Type

EventHandler<Identifier>

Destroying

Raised when document is about to close

event EventHandler Destroying

Event Type

EventHandler

SelectionChanged

event EventHandler<IEnumerable<Identifier>> SelectionChanged

Event Type

EventHandler<IEnumerable<Identifier>>

Connect with Ansys