Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class PropertyDocumentBase

Last update: 09.03.2026

Namespace: VM.Managed
Assembly: VMObjBase.dll

This base class is to represent the propety document base.

public abstract class PropertyDocumentBase : Document, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IEnableManager, IRelatedDocument, IHistorySupport, IPropertyDocument, IUnitChange, IXMLFormatable

Inheritance

object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← Document ← PropertyDocumentBase

Derived

PropertyDocument<TProp>

Implements

IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IEnableManager, IRelatedDocument, IHistorySupport, IPropertyDocument, IUnitChange, IXMLFormatable

Inherited Members

Document.g_OpenDocuments, Document.m_unit, Document.m_unitKernal, Document.raise_OnChildAdded(object, DocumentEventArgs), Document.raise_OnChildRemoved(object, DocumentEventArgs), Document.raise_OnChildRenamed(object, DocumentEventArgs), Document.raise_OnChildUpdated(object, DocumentEventArgs), Document.raise_OnChildUpdatedEnable(object, DocumentEventArgs), Document.raise_OnChildUpdatedAll(object, DocumentEventArgs), Document.raise_OnChildDocNameUpdated(object, DocumentEventArgs), Document.raise_OnDependentDocumentAdded(object, DependentDocEventArgs), Document.raise_OnDependentDocumentRemoved(object, DependentDocEventArgs), Document.raise_OnClearSelectNavigator(object, DocumentEventArgs), Document.raise_OnChildRootSelect(object, DocumentEventArgs), Document.raise_OnChangeIconForNodalModal(object, DocumentEventArgs), Document.raise_OnDoingImport(object, DocumentEventArgs), Document.raise_OnSkipChildAdded(object, DocumentEventArgs), Document.raise_OnSimulationCaseUpdated(object, EventArgs), Document.raise_OnSubentityRefreshed(object, EventArgs), Document.raise_OnSubentityAdded(object, DocumentEventArgs), Document.raise_OnChildMultiAdded(object, DocumentEventArgs), Document.raise_OnSingleObjectSelected(object, ObjectBaseEventArgs), Document.raise_Destroying(object, EventArgs), Document.raise_ChildAdded(object, Identifier), Document.raise_ChildRemoved(object, Identifier), Document.raise_ChildReplacing(object, Identifier), Document.raise_ChildReplaced(object, Identifier), Document.raise_SelectionChanged(object, IEnumerable<Identifier>), Document.Initialize(Document.OpenDoc, Document.BrowseFile, Document.IsOpenDoc, Document.GetDocFromOpenedDoc, Document.ActiveDocChange, Document.ActiveViewChange), Document.Open(string, bool, bool), Document.Open(string, bool), Document.Open(string), Document.Open(string, string, bool), Document.Open(string, string), Document.TryOpen(string, LoadSerializeContext, bool), Document.TryOpen(string, string, bool), Document.TryOpen(string, string), Document.GetDocumentFromOpenedDocument(string), Document.IsOpen(string), Document.ActiveChangedDoc(), Document.ActiveChangedView(), Document.Save(string), Document.PostSave(List<Document>, bool), Document.CreateView(UIntPtr), Document.CloseView(View), Document.Add(ObjectBase), Document.UpdateEnable(ObjectBase, bool), Document.UpdateInterface(ObjectBase, bool), Document.IsTypeSupported(Type), Document.AddToSelectionList(ObjectBase), Document.CancelSelection(bool, bool), Document.ExitCommandMode(), Document.PostOpenDocument(), Document.PostOpenDocumentAfterHookEvent(), Document.PostOpenDocumentAfterErrCheckEvent(), Document.PostOpenDocumentAfterRestoreObjectID(), Document.PostOpenDocumentAfterSetFilePath(), Document.PostCloseDocument(), Document.LinkRequestDestroy(object, LinkEventArgs), Document.PostOpenDocumentAndInitLayer(), Document.DisplayModeShape(int, double), Document.EnableModeShape(bool), Document.GetData(XmlNode), Document.SetData(XmlNode), Document.OperationBegin(), Document.OperationEnd(), Document.GetCopyOfUnit(), Document.GetCopyOfKernelUnit(), Document.FastToConvertUnitLength(bool), Document.ContainsNameAttribute(string), Document.ReplacesNameAttribute(string, string), Document.GetUniqueNameAttribute(string), Document.UpdateItemInNavigaterForUndoRedo(IObjectBase), Document.AddItemToNavigaterForUndoRedo(ObjectBase), Document.RemoveItemFromNavigaterForUndoRedo(ObjectBase), Document.RenameItemFromNavigaterForUndoRedo(ObjectBase), Document.UpdateAllItemInNavigaterForUndoRedo(), Document.UpdateSimulationConfigurationForUndoRedo(), Document.AddItemToSubEntityForUndoRedo(ObjectBase), Document.AddReferenceForUndoRedo(ObjectBase), Document.RefreshReferenceForUndoRedo(ObjectBase), Document.AddToIDMap(IObject), Document.FindObjectFromID(Identifier), Document.FindObjectFromKey(UIntPtr), Document.RemoveFromIDMap(IObject), Document.WriteIDInformation(), Document.GetNextIdentifier(), Document.GetChildren(), Document.Close(), Document.SetUnit(Unit), Document.SetKernelUnit(string), Document.IsEnabledImpl(ObjectBase), Document.SetEnableImpl(ObjectBase, bool), Document.OnDeserialization(object), Document.OnPostMakeDocument(DocCreateInfo), Document.RegisterAddon(), Document.OnContainerDestroy(object, LinkEventArgs), Document.ClearDocument(), Document.Dispose(bool), Document.KeepOldKernelUnit, Document.ClearChildInfoBeforeDeserialize, Document.ExpressionParser, Document.IsHideEntityListWindow, Document.IsHideFilterWindow, Document.SelectedLayoutAlgorithmType, Document.FilterdTypes, Document.CloseAllDialogWhenCloseDoc, Document.DoingOpen, Document.DoingClose, Document.Attributes, Document.AutoSaved, Document.IsChildExternable, Document.IsExternable, Document.IsReplaced, Document.FilePath, Document.DocumentName, Document.InitialConvertFactor, Document.DocumentSessionOverride, Document.CanClose, Document.Modified, Document.SelectionChanged, Document.ChildReplaced, Document.ChildReplacing, Document.ChildRemoved, Document.ChildAdded, Document.Destroying, Document.OnSingleObjectSelected, Document.OnChildMultiAdded, Document.OnSubentityAdded, Document.OnSubentityRefreshed, Document.OnSimulationCaseUpdated, Document.OnSkipChildAdded, Document.OnDoingImport, Document.OnChangeIconForNodalModal, Document.OnChildRootSelect, Document.OnClearSelectNavigator, Document.OnDependentDocumentRemoved, Document.OnDependentDocumentAdded, Document.OnChildDocNameUpdated, Document.OnChildUpdatedAll, Document.OnChildUpdatedEnable, Document.OnChildUpdated, Document.OnChildRenamed, Document.OnChildRemoved, Document.OnChildAdded, Container.Find(string), Container.FindLocal(string), Container.GetUnnamedObjectName(object), Container.GetNewEntityName(string, bool, int, int), Container.GetNewEntityName(string, bool, int), Container.GetNewEntityName(string), LinkContainer.SetModified(), LinkContainer.raise_OnUpdating(object, LinkEventArgs), LinkContainer.raise_OnUpdate(object, LinkEventArgs), LinkContainer.raise_OnDestroying(object, LinkEventArgs), LinkContainer.raise_OnDestroy(object, LinkEventArgs), LinkContainer.raise_OnAdded(object, AddToDocEventArgs), LinkContainer.raise_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.IsSerializableEvent(Delegate), LinkContainer.CustomGetObjectData(SerializationInfo, StreamingContext), LinkContainer.GetSerializedData(SerializationInfo, StreamingContext), LinkContainer.LinkRequestUpdating(object, LinkEventArgs), LinkContainer.LinkRequestUpdate(object, LinkEventArgs), LinkContainer.LinkRequestDestroying(object, LinkEventArgs), LinkContainer.LinkRequestDestroy(object, LinkEventArgs), LinkContainer.LinkAddedToDocument(object, AddToDocEventArgs), LinkContainer.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), LinkContainer.OnLinkReserved(ILink, object, EventArgs), LinkContainer.CanBeDestroy(object), LinkContainer.DisposeManagedResources(), LinkContainer.SetContainer(IOwned, bool), LinkContainer.OnChildUpdated(object, LinkEventArgs), LinkContainer.OnContainerDestroy(object, LinkEventArgs), LinkContainer.OnDeserialization(object), LinkContainer.Verify(VerifiedResult), LinkContainer.GetCopy(object), LinkContainer.Dispose(bool), LinkContainer.ClearChildInfoBeforeDeserialize, LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

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

Constructors

PropertyDocumentBase()

Initializes a new instance of the class.

protected PropertyDocumentBase()

Properties

CanClose

Gets a value indicating whether this instance can close.

public override sealed bool CanClose { get; }

Property Value

bool

DocumentSessionOverride

Gets the document session override.

public override SessionOverride DocumentSessionOverride { get; }

Property Value

SessionOverride

IsPropertySupport

Gets a value indicating whether this instance is property support.

public bool IsPropertySupport { get; }

Property Value

bool

Modified

Gets or sets a value indicating whether this is modified.

public override sealed bool Modified { get; set; }

Property Value

bool

OwnedCollection

Gets or sets the object list in propery document.

public IList<ObjectBase> OwnedCollection { get; }

Property Value

IList<ObjectBase>

OwnedList

Gets or sets the object list in propery document.

[Obsolete]
public List<Link<ObjectBase, LinkContainer.None, LinkContainer.None, LinkContainer.None>> OwnedList { get; }

Property Value

List<Link<ObjectBase, LinkContainer.None, LinkContainer.None, LinkContainer.None>>

PropertyType

Gets the type of the property.

protected abstract Type PropertyType { get; }

Property Value

Type

Reload

Gets or sets a value indicating whether this is reload.

public bool Reload { get; set; }

Property Value

bool

SetDocumentSessionOverride

Sets the set document session override.

public SessionOverride SetDocumentSessionOverride { set; }

Property Value

SessionOverride

UntypedProperty

Gets or sets the untyped property.

protected abstract Property UntypedProperty { get; set; }

Property Value

Property

UntypedPropertyOwner

Gets the untyped property owner.

protected abstract ObjectBase UntypedPropertyOwner { get; }

Property Value

ObjectBase

Methods

Add(ObjectBase)

Adds the specified object.

public override sealed void Add(ObjectBase obj)

Parameters

obj ObjectBase

The object.

AddImpl(ObjectBase)

Adds the specified object [implementation].

protected virtual void AddImpl(ObjectBase obj)

Parameters

obj ObjectBase

The object.

AddReferenceDocument(Document)

Adds the [reference document] to a container.

public void AddReferenceDocument(Document docReference)

Parameters

docReference Document

The [reference document].

CreateView(UIntPtr)

Creates the view.

public override View CreateView(UIntPtr hWnd)

Parameters

hWnd UIntPtr

The handle.

Returns

View

The view.

DeserializeObj<T>(XmlReader, string, Type)

Deserializes the object.

protected static T DeserializeObj<T>(XmlReader reader, string strElementName, Type type)

Parameters

reader XmlReader

The reader.

strElementName string

Name of the element.

type Type

The object type.

Returns

T

The deserialized object.

Type Parameters

T

The deserialized object.

FindLocal(string)

Finds an object that matches a specified name in local.

public override IObjectBase FindLocal(string strName)

Parameters

strName string

Name to search for.

Returns

IObjectBase

An object that matches a specified name.

GetData(XmlNode)

Gets the data [Not Implemented].

public override void GetData(XmlNode writer)

Parameters

writer XmlNode

The writer.

IsTypeSupported(Type)

Determines whether is [type supported] [the specified type].

public override void IsTypeSupported(Type type)

Parameters

type Type

The type.

Load(string)

Loads the from specified path.

public void Load(string strPath)

Parameters

strPath string

The STR path.

Load(TextReader)

Loads the from specified reader.

public abstract void Load(TextReader reader)

Parameters

reader TextReader

The reader.

Load(Stream)

Loads the from specified stream.

public void Load(Stream stream)

Parameters

stream Stream

The stream.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object obSender)

Parameters

obSender object

The sender.

OnPostAdd(ObjectBase)

Called when [post add].

protected virtual void OnPostAdd(ObjectBase ob)

Parameters

ob ObjectBase

The object.

OnPostMakeDocument(DocCreateInfo)

Called when [post make document].

protected override void OnPostMakeDocument(DocCreateInfo info)

Parameters

info DocCreateInfo

The [create document] information.

RemoveReferenceDocument(Document)

Removes the [reference document] to a container.

public void RemoveReferenceDocument(Document docReference)

Parameters

docReference Document

The [reference document].

Save(string)

Saves the from specified path.

public override sealed void Save(string strPath)

Parameters

strPath string

The path.

Save(TextWriter)

Saves the from specified writer.

public abstract void Save(TextWriter writer)

Parameters

writer TextWriter

The writer.

Save(Stream)

Saves the from specified stream.

public void Save(Stream stream)

Parameters

stream Stream

The stream.

SerializeObj<T>(XmlWriter, T, string)

Serializes the object.

protected static void SerializeObj<T>(XmlWriter writer, T ob, string strElementName)

Parameters

writer XmlWriter

The writer.

ob T

The object.

strElementName string

Name of the element.

Type Parameters

T

SetData(XmlNode)

Sets the data [Not Implemented].

public override void SetData(XmlNode reader)

Parameters

reader XmlNode

The reader.

SetUnit(Unit)

Sets the unit.

protected override sealed void SetUnit(Unit unit)

Parameters

unit Unit

The unit.

TriggerPostMakeDocument(PropertyDocCreateInfo)

Triggers the [post make document].

public void TriggerPostMakeDocument(PropertyDocCreateInfo info)

Parameters

info PropertyDocCreateInfo

The [create property document] information.

Connect with Ansys