Class MeshDocument
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.FE
Assembly: VMFE.dll
This class is to represent the mesh document.
public class MeshDocument : DocumentAnalysis, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IEnableManager, IRelatedDocument, IHistorySupport, ITemplateDocument, ITreatValidObject, IDocumentAnalysis, IDocument3D, IHandledDocument, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IInterfaceSupport
Inheritance
object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← Document ← HandledDocument ← Document3D ← DocumentAnalysis ← MeshDocument
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IEnableManager, IRelatedDocument, IHistorySupport, ITemplateDocument, ITreatValidObject, IDocumentAnalysis, IDocument3D, IHandledDocument, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IInterfaceSupport
Inherited Members
DocumentAnalysis.m_bSkipGravity,
DocumentAnalysis.RegisterAddon(),
DocumentAnalysis.IsContainSimulationScenarioInMap(Scenario),
DocumentAnalysis.GetStateFromActiveSimulationScenarioMap(Scenario),
DocumentAnalysis.SetStateFromActiveSimulationScenarioMap(Scenario, bool),
DocumentAnalysis.AddConfiguration(Configuration),
DocumentAnalysis.RemoveConfiguration(Configuration),
DocumentAnalysis.ClearConfiguration(),
DocumentAnalysis.GetDefaultMaterial(),
DocumentAnalysis.GetDefaultMaterial(bool),
DocumentAnalysis.IsExistDefaultMaterial(),
DocumentAnalysis.LinkRequestUpdate(object, LinkEventArgs),
DocumentAnalysis.GetBodyAndTransformation(ref List
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
MeshDocument(UIntPtr)
Initializes a new instance of the
public MeshDocument(UIntPtr pDoc)
Parameters
pDoc UIntPtr
The document handle.
Fields
g_bSkipDisplayModeShape
public static bool g_bSkipDisplayModeShape
Field Value
m_pDocMesh
The mesh document pointer of kernel.
protected IDocumentMesh* m_pDocMesh
Field Value
Properties
InitialCategories
Gets the initialize categories.
protected override List<string> InitialCategories { get; }
Property Value
Interfaces
Gets the interface manager.
public virtual InterfaceManager Interfaces { get; set; }
Property Value
InterfaceManager
NodalFilePath
Gets the file path for nodal.
public string NodalFilePath { get; }
Property Value
UseDFMFForNodal
Gets the flag about whether to use dfmf for nodal.
public bool UseDFMFForNodal { get; }
Property Value
Methods
ClearDocument()
Clears the document.
protected override void ClearDocument()
CreateAssemblyImpl()
Creates the assembly [implementation].
protected override Assembly CreateAssemblyImpl()
Returns
Assembly
The assembly.
CreateEdgeset(Tuple[], string)
public SetEdge CreateEdgeset(Tuple<uint uint>[] edges, string strName)
Parameters
strName string
Returns
CreateEdgeset(Tuple[])
public SetEdge CreateEdgeset(Tuple<uint uint>[] edges)
Parameters
Returns
CreateEdgeset(uint[])
Create edgeset.
public SetEdge CreateEdgeset(uint[] arNodeIndex)
Parameters
arNodeIndex uint[]
node index.
Returns
The edgeset.
CreateInterfaceManager()
Create interface manager.
virtual void CreateInterfaceManager()
CreateMarkerOnNode(PointOnNode, OrientationBase)
Create marker on node.
public MarkerOnNode CreateMarkerOnNode(PointOnNode point, OrientationBase orientation)
Parameters
point PointOnNode
point on node.
orientation OrientationBase
orientation.
Returns
The marker on node.
CreateNodeset(uint[], string)
Create nodeset.
public SetNode CreateNodeset(uint[] nodes, string strName)
Parameters
nodes uint[]
node indexes.
strName string
Name.
Returns
The nodeset.
CreateNodeset(uint[])
Create nodeset.
public SetNode CreateNodeset(uint[] nodes)
Parameters
nodes uint[]
node indexes.
Returns
The nodeset.
CreatePatchset(Patch[], string)
Create patchset.
public SetPatch CreatePatchset(Patch[] patches, string strName)
Parameters
patches Patch[]
patch informations.
strName string
Name.
Returns
The patchset.
CreatePatchset(Patch[])
Create patchset.
public SetPatch CreatePatchset(Patch[] patches)
Parameters
patches Patch[]
patch informations.
Returns
The patchset.
DisplayModeShape(int, double)
Display mode shape with scale factor.
public override void DisplayModeShape(int nModeSeq, double dScale)
Parameters
nModeSeq int
The sequence of mode.
dScale double
The scale factor.
EnableModeShape(bool)
Disable the mode shape displaying.
public override void EnableModeShape(bool bEnable)
Parameters
bEnable bool
The enable flag.
FindCategory(string)
Finds the category.
public override string FindCategory(string strType)
Parameters
strType string
The fullname of type.
Returns
The category.
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.
GetActiveMesh()
Gets the active mesh.
public Mesh GetActiveMesh()
Returns
The active mesh.
GetData(XmlNode)
Gets the analysis document information data.
public override void GetData(XmlNode writer)
Parameters
writer XmlNode
The writer.
GetMeshFileType(string)
Gets the mesh file type.
public static uint GetMeshFileType(string strMeshFile)
Parameters
strMeshFile string
The mesh file path.
Returns
BDF, DAT(Nastran) = 1, DAT(ANSYS), INP, CDB = 2, UDFF = 4, DFMF = 5
GetUsedNodes()
Get used nodes.
public uint[] GetUsedNodes()
Returns
uint[]
used node indexes.
ImportMesh(string, Color, string, Unit, bool, bool)
Import mesh.
public void ImportMesh(string strMeshFile, Color color, string strModalFile, Unit unit, bool bDropOffHighOrder, bool bModalOnly)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
strModalFile string
The modal file path.
unit Unit
The unit convert factor.
bDropOffHighOrder bool
The drop off high order flag.
bModalOnly bool
The modal only flag.
ImportMesh(string, Color, string, Unit)
Import mesh.
public virtual void ImportMesh(string strMeshFile, Color color, string strModalFile, Unit unit)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
strModalFile string
The modal file path.
unit Unit
The unit convert factor.
ImportMesh(string, string, Unit)
Import mesh.
public void ImportMesh(string strMeshFile, string strModalFile, Unit unit)
Parameters
strMeshFile string
The mesh file path.
strModalFile string
The modal file path.
unit Unit
The unit convert factor.
ImportMesh(string, Color, Unit, bool, bool, CreateSetData, string, string)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Color color, Unit unit, bool bDropOffHighOrder, bool bModalOnly, CreateSetData createSet, string strRunDllPath, string strNF2DFPath)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
unit Unit
The unit convert factor.
bDropOffHighOrder bool
The drop off high order flag.
bModalOnly bool
The modal only flag.
createSet CreateSetData
Create set.
strRunDllPath string
The rundll exe path.
strNF2DFPath string
The nfedf dll path.
Returns
ImportMesh(string, Color, Unit, bool, bool, CreateSetData)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Color color, Unit unit, bool bDropOffHighOrder, bool bModalOnly, CreateSetData createSet)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
unit Unit
The unit convert factor.
bDropOffHighOrder bool
The drop off high order flag.
bModalOnly bool
The modal only flag.
createSet CreateSetData
Create set.
Returns
ImportMesh(string, Color, Unit, bool, bool)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Color color, Unit unit, bool bDropOffHighOrder, bool bModalOnly)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
unit Unit
The unit convert factor.
bDropOffHighOrder bool
The drop off high order flag.
bModalOnly bool
The modal only flag.
Returns
ImportMesh(string, Color, Unit)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Color color, Unit unit)
Parameters
strMeshFile string
The mesh file path.
color Color
The mesh color.
unit Unit
The unit convert factor.
Returns
ImportMesh(string, Unit, string, string)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Unit unit, string strRunDll, string strNF2DF)
Parameters
strMeshFile string
The mesh file path.
unit Unit
The unit convert factor.
strRunDll string
The rundll exe path.
strNF2DF string
The nfedf dll path.
Returns
ImportMesh(string, Unit)
Import mesh.
public Mesh ImportMesh(string strMeshFile, Unit unit)
Parameters
strMeshFile string
The mesh file path.
unit Unit
The unit convert factor.
Returns
InitializeCategoryInfo(string)
Initializes the category information.
public static void InitializeCategoryInfo(string strCategoryName)
Parameters
strCategoryName string
The category name.
InitializeSimParam()
Initializes the simulation parameter.
protected override void InitializeSimParam()
IsExistMesh()
Determines whether is [exist mesh].
public bool IsExistMesh()
Returns
true if is [exist mesh]; otherwise, false.
IsPatchsetMakeable()
Determines whether is [makeable patchset].
public bool IsPatchsetMakeable()
Returns
true if is [makeable patchset]; otherwise, false.
LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.
protected override void LinkRequestUpdate(object obNotifier, LinkEventArgs arg)
Parameters
obNotifier object
The linked object.
arg LinkEventArgs
The
ModifyModal(string, Unit, bool)
modify modal.
public virtual void ModifyModal(string strModalFile, Unit unit, bool bOnlyDelete)
Parameters
strModalFile string
The modal file path.
unit Unit
The unit convert factor.
bOnlyDelete bool
OnDeserialization(object)
Called when [deserialization].
protected override void OnDeserialization(object sender)
Parameters
sender object
The sender.
OnPostMakeDocumentImpl(DocCreateAnalysisInfo)
Called when [post make document] [implementation].
public override void OnPostMakeDocumentImpl(DocCreateAnalysisInfo docCreateAnalysisInfo)
Parameters
docCreateAnalysisInfo DocCreateAnalysisInfo
PostOpenDocument()
Call when post [open document].
public override void PostOpenDocument()
PostOpenDocumentAfterErrCheckEvent()
Posts the open document after err check event.
public override void PostOpenDocumentAfterErrCheckEvent()
RegisterAddon()
Register addon
protected override void RegisterAddon()
SetAcitveMesh(UIntPtr)
Sets the acitve mesh.
public void SetAcitveMesh(UIntPtr pProxyMesh)
Parameters
pProxyMesh UIntPtr
The mesh proxy.
SetData(XmlNode)
Sets the analysis document information data.
public override void SetData(XmlNode reader)
Parameters
reader XmlNode
The reader.
SetHandle(UIntPtr)
Sets the document handle.
protected override void SetHandle(UIntPtr pDocHandle)
Parameters
pDocHandle UIntPtr
The document handle.
SkipDelete(ObjectBase)
Skips the delete.
protected override bool SkipDelete(ObjectBase obj)
Parameters
obj ObjectBase
The obj.
Returns
UpdateNavigatorForReference(Mesh, bool)
Updates the navigator for reference.
public void UpdateNavigatorForReference(Mesh mesh, bool bRemove)
Parameters
mesh Mesh
The mesh.
bRemove bool
if set to true [b remove].