Class MeshDocumentAPI
Last update: 09.03.2026Namespace: VM.API.Pre.FE
Assembly: VM.API.Pre.FE.dll
This class implements APIs for
public static class MeshDocumentAPI
Inheritance
object ← MeshDocumentAPI
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
CreateNewMeshDocument(string, string, Unit, double)
Create
[NotNullOrEmpty(new string[] { "newMeshFilePath" })]
public static MeshDocument CreateNewMeshDocument(string newMeshFilePath, string documentName = "Mesh", Unit unit = null, double iconSize = 1)
Parameters
newMeshFilePath string
The file path of new mesh.
documentName string
The name of document.
unit Unit
The unit information.
iconSize double
The size of icon.
Returns
MeshDocument
The new SubSystemDocument object that is created by this API.
Exceptions
ArgumentNullException
Will be thrown if 'newMeshFilePath' argument is empty.
ImportMesh(MeshDocument, string, string, Color?, bool, bool)
Import external mesh file such as bdf/dat into the
[NotNull(new string[] { "doc" })]
[ExistFile(new string[] { "feDataFilePath" })]
public static Obj ImportMesh(this MeshDocument doc, string feDataFilePath, string modalDataFileName = "", Color? meshColor = null, bool degenerateElement = false, bool importOnlyRBEIncludingStaticCorrectionMode = false)
Parameters
doc MeshDocument
The
feDataFilePath string
The path to the external mesh file.
modalDataFileName string
The path to the modal data file.
meshColor Color?
The
degenerateElement bool
The flag for degenerate element.
importOnlyRBEIncludingStaticCorrectionMode bool
The flag for import only rbe including static correction mode.
Returns
The new
Exceptions
ArgumentNullException
Will be thrown when doc or feDataFilePath is null,
FileNotFoundException
Will be thrown if feDataFilePath file is not exist.
ModifyModal(MeshDocument, string, Unit, bool)
Create
[NotNull(new string[] { "doc" })]
[ExistFile(new string[] { "strModalFile" })]
public static void ModifyModal(this MeshDocument doc, string strModalFile, Unit unit = null, bool bOnlyDelete = false)
Parameters
doc MeshDocument
The
strModalFile string
The path to the external modal file.
unit Unit
The unit information.
bOnlyDelete bool
The flag of deleting old modal data.
Exceptions
ArgumentNullException
Will be thrown when doc is null,
FileNotFoundException
Will be thrown if strModalFile file is not exist.