Skip to main content
Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the document.

Inheritance

object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← Document

Derived

ControlDocument, HandledDocument

Implements

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

Inherited Members

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

Document()

Initializes a new instance of the Document class

Fields

g_OpenDocuments

The list of open documents.

Field Value

List<string>

m_unit

The kernal unit.

Field Value

Unit

m_unitKernal

Field Value

Unit

Properties

Attributes

Gets or sets the Attribute to collection.

Property Value

AttributeCollection

AutoSaved

Gets the document’s auto save state.

Property Value

bool

CanClose

Gets a value indicating that whether document can close.

Property Value

bool

ClearChildInfoBeforeDeserialize

Gets a value indicating whether [clear child info before deserialize].

Property Value

bool

CloseAllDialogWhenCloseDoc

Gets a value indicating that whether all dialog is closing when document is closed.

Property Value

bool

DocumentName

Gets or sets the document name.

Property Value

string

DocumentSessionOverride

Gets the document session override.

Property Value

SessionOverride

DoingClose

Gets a value indicating that whether document is closing.

Property Value

bool

DoingOpen

Gets or sets a value indicating whether this instance is loading.

Property Value

bool

ExpressionParser

Property Value

ExpressionParser

FilePath

Gets or sets the document file path.

Property Value

string

FilterdTypes

Property Value

List<int>

InitialConvertFactor

Gets the initialized convert factor.

Property Value

Unit.ConvertFactor

IsChildExternable

Gets a value indicating whether this instance’s child is externable.

Property Value

bool

IsExternable

Gets a value indicating whether this instance is externable.

Property Value

bool

IsHideEntityListWindow

Property Value

bool

IsHideFilterWindow

Property Value

bool

IsReplaced

Gets or sets the replaced document flag.

Property Value

bool

KeepOldKernelUnit

Keep old kernel unit during convert ACIS to Parasolid

Property Value

bool

Modified

Gets or sets the document’s modify state.

Property Value

bool

SelectedLayoutAlgorithmType

Property Value

int

Methods

ActiveChangedDoc()

Active document.

ActiveChangedView()

Active view.

Add(ObjectBase)

Add object to document.

Parameters

obj ObjectBase The object.

AddItemToNavigaterForUndoRedo(ObjectBase)

Add item to navigator for undo/redo.

Parameters

obj ObjectBase The object.

AddItemToSubEntityForUndoRedo(ObjectBase)

Add item to subentity for undo/redo.

Parameters

obj ObjectBase The object.

AddReferenceForUndoRedo(ObjectBase)

Add reference for undo/redo.

Parameters

obj ObjectBase The object.

AddToIDMap(IObject)

add id to map

Parameters

obj IObject The object.

AddToSelectionList(ObjectBase)

Add to selection list.

Parameters

A_0 ObjectBase

CancelSelection(bool, bool)

Cancel selection.

Parameters

A_0 bool A_1 bool

ClearDocument()

Clears the document.

Close()

CloseView(View)

Close view.

Parameters

view View The view.

ContainsNameAttribute(string)

Contains the name attribute.

Parameters

strNameAttribute string The name value.

Returns

bool

CreateView(UIntPtr)

Create view.

Parameters

hWnd UIntPtr The view handle.

Returns

View

DisplayModeShape(int, double)

Display mode shape with scale factor.

Parameters

A_0 int A_1 double

Dispose(bool)

Parameters

A_0 bool

EnableModeShape(bool)

Disable the mode shape displaying.

Parameters

A_0 bool

ExitCommandMode()

Exit kernel command mode.

FastToConvertUnitLength(bool)

Fast convert unit length .

Parameters

bReverse bool The reverse state.

Returns

double

~Document()

FindObjectFromID(Identifier)

FInd object form id.

Parameters

id Identifier The id.

Returns

IObject

FindObjectFromKey(UIntPtr)

Find object from key.

Parameters

key UIntPtr The key.

Returns

IObject Find object

GetChildren()

Returns

IEnumerable<IObject>

GetCopyOfKernelUnit()

Gets the document kernel unit from copy.

Returns

Unit

GetCopyOfUnit()

Gets the document unit from copy.

Returns

Unit

GetData(XmlNode)

Gets the analysis document information data.

Parameters

writer XmlNode The writer.

GetDocumentFromOpenedDocument(string)

Get document from already opened document.

Parameters

strFilePath string The file path.

Returns

Document

GetNextIdentifier()

Gets the next object identifier.

Returns

Identifier

GetUniqueNameAttribute(string)

Gets the unique name attribute.

Parameters

strNameAttribute string The name value.

Returns

string

Initialize(OpenDoc, BrowseFile, IsOpenDoc, GetDocFromOpenedDoc, ActiveDocChange, ActiveViewChange)

Initialize delegate.

Parameters

delOpenDoc Document.OpenDoc The OpenDoc delegate. delBrowse Document.BrowseFile The BrowseFile delegate. delIsOpen Document.IsOpenDoc The IsOpen delegate. delOpenedDoc Document.GetDocFromOpenedDoc The OpenedDoc delegate. delActiveDocChange Document.ActiveDocChange The ActiveDocChange delegate. delActiveViewChange Document.ActiveViewChange The ActiveViewChange delegate.

IsEnabledImpl(ObjectBase)

Determines whether is enabled [the specified object] [implementation].

Parameters

ob ObjectBase The object.

Returns

bool true if is enabled [the specified object]; otherwise, false.

IsOpen(string)

Whether document is open.

Parameters

strFilePath string The file path.

Returns

bool

IsTypeSupported(Type)

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

Parameters

type Type The type.

LinkRequestDestroy(object, LinkEventArgs)

The destroy event occured from the linked object.

Parameters

objNotifier object The linked object. arg LinkEventArgs The destroy event information.

OnContainerDestroy(object, LinkEventArgs)

Called when [container destroy].

Parameters

obj object The object. args LinkEventArgs The LinkEventArgs instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

Parameters

obSender object The sender.

OnPostMakeDocument(DocCreateInfo)

Called when [post make document] [implementation].

Parameters

A_0 DocCreateInfo

Open(string, bool, bool)

Open document.

Parameters

strFullFilePath string The full file path. bActivate bool bHidden bool hidden file flag.

Returns

Document

Open(string, bool)

Open document.

Parameters

strFullFilePath string The full file path. bActivate bool Whether document is acivate.

Returns

Document

Open(string)

Open document.

Parameters

strFullFilePath string The full file path.

Returns

Document

Open(string, string, bool)

Open document.

Parameters

strRelativeFilePath string The relative file path. strRefDir string The reference directory. bActivate bool Whether document is acivate.

Returns

Document

Open(string, string)

Open document.

Parameters

strRelativeFilePath string The relative file path. strRefDir string The reference directory.

Returns

Document

OperationBegin()

Begin of operation.

OperationEnd()

End of operation.

PostCloseDocument()

Call when post [close document].

PostOpenDocument()

Call when post [open document].

PostOpenDocumentAfterErrCheckEvent()

Posts the open document after err check event.

PostOpenDocumentAfterHookEvent()

Call when post [open document] after hook event.

PostOpenDocumentAfterRestoreObjectID()

Posts the open document after restore object id.

PostOpenDocumentAfterSetFilePath()

Call when post [open document] after set file path.

PostOpenDocumentAndInitLayer()

Call [Open Document] for initialize layer.

PostSave(List<Document>, bool)

Parameters

lstOpenDocs List<Document> bModified bool

RefreshReferenceForUndoRedo(ObjectBase)

Refresh reference for undo/redo.

Parameters

obj ObjectBase The object.

RegisterAddon()

Register addon

RemoveFromIDMap(IObject)

remove id from map

Parameters

obj IObject The object.

RemoveItemFromNavigaterForUndoRedo(ObjectBase)

Remove item from navigator for undo/redo.

Parameters

obj ObjectBase The object.

RenameItemFromNavigaterForUndoRedo(ObjectBase)

Rename item from navigator for undo/redo.

Parameters

obj ObjectBase The object.

ReplacesNameAttribute(string, string)

Replaces the name attribute.

Parameters

strNameAttributeOld string The old name value. strNameAttributeNew string The new name value.

Returns

bool

Save(string)

Save document.

Parameters

strPath string The path to save.

SetData(XmlNode)

Sets the analysis document information data.

Parameters

reader XmlNode The reader.

SetEnableImpl(ObjectBase, bool)

Sets the enable [implementation].

Parameters

ob ObjectBase The object. bEnable bool if set to true enable.

SetKernelUnit(string)

Sets the kernel unit with length.

Parameters

strLength string The length unit.

SetUnit(Unit)

Sets the document unit.

Parameters

unit Unit The document unit.

TryOpen(string, LoadSerializeContext, bool)

Try opening document.

Parameters

strRelativeFilePath string The relative file path. context LoadSerializeContext The context info. bActivate bool Whether document is acivate.

Returns

Document

TryOpen(string, string, bool)

Try opening document.

Parameters

strRelativeFilePath string The relative file path. strRefDir string The reference directory. bActivate bool Whether document is acivate.

Returns

Document

TryOpen(string, string)

Try opening document.

Parameters

strRelativeFilePath string The relative file path. strRefDir string The reference directory.

Returns

Document

UpdateAllItemInNavigaterForUndoRedo()

Update all item in navigator for undo/redo.

UpdateEnable(ObjectBase, bool)

Update object to enable or disable.

Parameters

obj ObjectBase The object. bEnabled bool Whether object is enable.

UpdateInterface(ObjectBase, bool)

Update interface.

Parameters

obj ObjectBase The object. bInterfaced bool Whether object is interfaced.

UpdateItemInNavigaterForUndoRedo(IObjectBase)

Update item in navigator for undo/redo.

Parameters

obj IObjectBase The object.

UpdateSimulationConfigurationForUndoRedo()

Update simulation configuration for undo/redo.

WriteIDInformation()

write id information

Returns

string

raise_ChildAdded(object, Identifier)

Parameters

value0 object value1 Identifier

raise_ChildRemoved(object, Identifier)

Parameters

value0 object value1 Identifier

raise_ChildReplaced(object, Identifier)

Parameters

value0 object value1 Identifier

raise_ChildReplacing(object, Identifier)

Parameters

value0 object value1 Identifier

raise_Destroying(object, EventArgs)

Parameters

value0 object value1 EventArgs

raise_OnChangeIconForNodalModal(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildAdded(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildDocNameUpdated(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildMultiAdded(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildRemoved(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildRenamed(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildRootSelect(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildUpdated(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildUpdatedAll(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnChildUpdatedEnable(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnClearSelectNavigator(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnDependentDocumentAdded(object, DependentDocEventArgs)

Parameters

objNotifier object args DependentDocEventArgs

raise_OnDependentDocumentRemoved(object, DependentDocEventArgs)

Parameters

objNotifier object args DependentDocEventArgs

raise_OnDoingImport(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnSimulationCaseUpdated(object, EventArgs)

Parameters

objNotifier object args EventArgs

raise_OnSingleObjectSelected(object, ObjectBaseEventArgs)

Parameters

value0 object value1 ObjectBaseEventArgs

raise_OnSkipChildAdded(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnSubentityAdded(object, DocumentEventArgs)

Parameters

objNotifier object args DocumentEventArgs

raise_OnSubentityRefreshed(object, EventArgs)

Parameters

objNotifier object args EventArgs

raise_SelectionChanged(object, IEnumerable<Identifier>)

Parameters

value0 object value1 IEnumerable<Identifier>

ChildAdded

Occurs when [on added child].

Event Type

EventHandler<Identifier>

ChildRemoved

Occurs when [on removed child].

Event Type

EventHandler<Identifier>

ChildReplaced

Occurs when [on replaced child].

Event Type

EventHandler<Identifier>

ChildReplacing

Occurs when [on replacing child].

Event Type

EventHandler<Identifier>

Destroying

Occurs when [on destroying child].

Event Type

EventHandler

OnChangeIconForNodalModal

Occurs when [on clear selected navigator item].

Event Type

EventHandler<DocumentEventArgs>

OnChildAdded

Occurs when [on added child].

Event Type

EventHandler<DocumentEventArgs>

OnChildDocNameUpdated

Occurs when [on updated child’s document name].

Event Type

EventHandler<DocumentEventArgs>

OnChildMultiAdded

Occurs when [on multi added child].

Event Type

EventHandler<DocumentEventArgs>

OnChildRemoved

Occurs when [on removed child].

Event Type

EventHandler<DocumentEventArgs>

OnChildRenamed

Occurs when [on renamed child].

Event Type

EventHandler<DocumentEventArgs>

OnChildRootSelect

Occurs when [on child root select].

Event Type

EventHandler<DocumentEventArgs>

OnChildUpdated

Occurs when [on updated child].

Event Type

EventHandler<DocumentEventArgs>

OnChildUpdatedAll

Occurs when [on updated child’s everything].

Event Type

EventHandler<DocumentEventArgs>

OnChildUpdatedEnable

Occurs when [on updated child’s enablement].

Event Type

EventHandler<DocumentEventArgs>

OnClearSelectNavigator

Occurs when [on clear selected navigator item].

Event Type

EventHandler<DocumentEventArgs>

OnDependentDocumentAdded

Occurs when [on added dependent document].

Event Type

EventHandler<DependentDocEventArgs>

OnDependentDocumentRemoved

Occurs when [on removed dependent document].

Event Type

EventHandler<DependentDocEventArgs>

OnDoingImport

Occurs when [on doing import].

Event Type

EventHandler<DocumentEventArgs>

OnSimulationCaseUpdated

Occurs when [on simulation case updated].

Event Type

EventHandler<EventArgs>

OnSingleObjectSelected

Event Type

EventHandler<ObjectBaseEventArgs>

OnSkipChildAdded

Occurs when [on skip to add child].

Event Type

EventHandler<DocumentEventArgs>

OnSubentityAdded

Occurs when [on subentity added].

Event Type

EventHandler<DocumentEventArgs>

OnSubentityRefreshed

Occurs when [on subentity refreshed].

Event Type

EventHandler<EventArgs>

SelectionChanged

Occurs when [on child selection changed].

Event Type

EventHandler<IEnumerable<Identifier>>