Assembly: VMAppCore.dll This class is to represent the document.
Inheritance
object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← DocumentDerived
ControlDocument, HandledDocumentImplements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IEnableManager, IRelatedDocument, IHistorySupportInherited 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.PropertyChangedExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
Document()
Initializes a new instance of the Document classFields
g_OpenDocuments
The list of open documents.Field Value
List<string>m_unit
The kernal unit.Field Value
Unitm_unitKernal
Field Value
UnitProperties
Attributes
Gets or sets the Attribute to collection.Property Value
AttributeCollectionAutoSaved
Gets the document’s auto save state.Property Value
boolCanClose
Gets a value indicating that whether document can close.Property Value
boolClearChildInfoBeforeDeserialize
Gets a value indicating whether [clear child info before deserialize].Property Value
boolCloseAllDialogWhenCloseDoc
Gets a value indicating that whether all dialog is closing when document is closed.Property Value
boolDocumentName
Gets or sets the document name.Property Value
stringDocumentSessionOverride
Gets the document session override.Property Value
SessionOverrideDoingClose
Gets a value indicating that whether document is closing.Property Value
boolDoingOpen
Gets or sets a value indicating whether this instance is loading.Property Value
boolExpressionParser
Property Value
ExpressionParserFilePath
Gets or sets the document file path.Property Value
stringFilterdTypes
Property Value
List<int>InitialConvertFactor
Gets the initialized convert factor.Property Value
Unit.ConvertFactorIsChildExternable
Gets a value indicating whether this instance’s child is externable.Property Value
boolIsExternable
Gets a value indicating whether this instance is externable.Property Value
boolIsHideEntityListWindow
Property Value
boolIsHideFilterWindow
Property Value
boolIsReplaced
Gets or sets the replaced document flag.Property Value
boolModified
Gets or sets the document’s modify state.Property Value
boolSelectedLayoutAlgorithmType
Property Value
intMethods
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 mapParameters
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
boolCreateView(UIntPtr)
Create view.Parameters
hWnd UIntPtr
The view handle.
Returns
ViewDisplayModeShape(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
IObjectFindObjectFromKey(UIntPtr)
Find object from key.Parameters
key UIntPtr
The key.
Returns
IObject Find objectGetChildren()
Returns
IEnumerable<IObject>GetCopyOfKernelUnit()
Gets the document kernel unit from copy.Returns
UnitGetCopyOfUnit()
Gets the document unit from copy.Returns
UnitGetData(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
DocumentGetNextIdentifier()
Gets the next object identifier.Returns
IdentifierGetUniqueNameAttribute(string)
Gets the unique name attribute.Parameters
strNameAttribute string
The name value.
Returns
stringInitialize(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
booltrue if is enabled [the specified object]; otherwise, false.
IsOpen(string)
Whether document is open.Parameters
strFilePath string
The file path.
Returns
boolIsTypeSupported(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
DocumentOpen(string, bool)
Open document.Parameters
strFullFilePath string
The full file path.
bActivate bool
Whether document is acivate.
Returns
DocumentOpen(string)
Open document.Parameters
strFullFilePath string
The full file path.
Returns
DocumentOpen(string, string, bool)
Open document.Parameters
strRelativeFilePath string
The relative file path.
strRefDir string
The reference directory.
bActivate bool
Whether document is acivate.
Returns
DocumentOpen(string, string)
Open document.Parameters
strRelativeFilePath string
The relative file path.
strRefDir string
The reference directory.
Returns
DocumentOperationBegin()
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 addonRemoveFromIDMap(IObject)
remove id from mapParameters
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
boolSave(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
DocumentTryOpen(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
DocumentTryOpen(string, string)
Try opening document.Parameters
strRelativeFilePath string
The relative file path.
strRefDir string
The reference directory.
Returns
DocumentUpdateAllItemInNavigaterForUndoRedo()
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 informationReturns
stringraise_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>