Method GetMaterialName
GetMaterialName(DocumentId)
Gets the material name from a result document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 19, 15, 0)]
string GetMaterialName(DocumentId inDocumentId)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the document to analyze. |
Returns
| Type | Description |
|---|---|
| string | The name of the material. |
Remarks
This method is available since v7.19.
Examples
DocumentId docId = TopSolidHost.Documents.EditedDocument;
string materialName = TopSolidCaeHost.Results.GetMaterialName(docId);