Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Interface ILink

Last update: 16.07.2025

Namespace: VM.Managed
Assembly: VMAppCore.dll

This interface is to represent the linked object.

public interface ILink

Extension Methods

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

Properties

FieldHasValue

Gets the status of field.

bool FieldHasValue { get; }

Property Value

bool

LinkedObject

Gets the object container that has a relation with this.

ILinkContainer LinkedObject { get; }

Property Value

ILinkContainer

Owner

Gets the object that has this link.

ILinkContainer Owner { get; }

Property Value

ILinkContainer

Methods

Clear(bool)

Clear the link relation.

The backup flag.
void Clear(bool bBackup)

Parameters

bBackup bool

ClearBeforeDeserialize()

Disconnect the link relation before deserialize.

void ClearBeforeDeserialize()

ClearBeforeSwap()

Disconnect the link relation before undo/redo.

void ClearBeforeSwap()

DestroyObject(object, LinkEventArgs)

Destroy this link

void DestroyObject(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

Dispose this link.

void DisposeLink()

GetChilds(HashSet)

void GetChilds(HashSet<ilinkcontainer> lstObjs)

Parameters

lstObjs HashSet

GetFirstDesignEntities()

Get first design entities.

IEnumerable<iobject> GetFirstDesignEntities()

Returns

IEnumerable

Reserve(LinkEventArgs)

Reserve link.

bool Reserve(LinkEventArgs args)

Parameters

args LinkEventArgs

The event argument.

Returns

bool

true if succeess to reserve, otherwise false.

SetModified()

set modified link for undo/redo

void SetModified()

Verify(VerifiedResult)

Verify the link.

The verified result.
void Verify(VerifiedResult vr)

Parameters

vr VerifiedResult

Connect with Ansys