MIL_ID ContextOrResultId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT LabelOrIndex, | //in |
MIL_TEXT_PTR String, | //in-out |
MIL_INT *ValuePtr, | //out |
MIL_INT64 ControlFlag | //in |
This function allows you to set or retrieve the name of a metrology feature or tolerance. It also allows you to retrieve either the label or index of a feature or tolerance based on its name.
Note that MmetName() supports Unicode.
Specifies the identifier of the metrology context or result buffer containing the feature or tolerance to read or modify. The metrology context or the metrology result buffer must have been previously allocated on the required system using MmetAlloc() or MmetAllocResult(), respectively.
When the Operation parameter is set to M_SET_NAME, this parameter must be a context ID. Otherwise, this parameter can be either a context or a result ID.
Specifies the type of operation to perform.
For specifying the operation to
perform
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_GET_FEATURE_INDEX |
Retrieves the index of a feature based on its name. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GET_FEATURE_LABEL |
Retrieves the label of a feature based on its name. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GET_NAME |
Retrieves the name of the feature or tolerance defined by the LabelOrIndex parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GET_TOLERANCE_INDEX |
Retrieves the index of a tolerance based on its name. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GET_TOLERANCE_LABEL |
Retrieves the label of a tolerance based on its name. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SET_NAME |
Sets the name of the feature or tolerance defined by the LabelOrIndex parameter. (more details...) |
Specifies the name to set or retrieve, depending on the Operation parameter.
Set this parameter to M_NULL and the Operation parameter to M_SET_NAME to release a name.
Note that when setting a feature or tolerance name with the String parameter, the name must be unique (this does not apply when Operation is set to M_GET_NAME).
Header | Include mil.h. |
Library | Use mil.lib; milmetrol.lib. |
DLL | Requires mil.dll; milmetrol.dll. |