Method RefreshMesh
RefreshMesh(DocumentId)
Refresh the mesh of an analysis preparation document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 19, 15, 0)]
bool RefreshMesh(DocumentId inDocumentId)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the document holding mesh to refresh. |
Returns
| Type | Description |
|---|---|
| bool | Whether mesh has actually been refreshed. |
Remarks
This method is available since v7.19.
Examples
DocumentId docId = TopSolidHost.Documents.EditedDocument;
if (TopSolidHost.Application.StartModification("refresh mesh", false))
{
try
{
if (TopSolidCaeHost.Documents.MeshNeedsRefreshing(docId))
{
TopSolidCaeHost.Documents.RefreshMesh(docId);
}
TopSolidHost.Application.EndModification(true, true);
}
catch
{
TopSolidHost.Application.EndModification(false, false);
}
}