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.
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. Set the LabelOrIndex parameter to M_DEFAULT. If there is no feature with the specified name, the returned index is -1. (summarize)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. Set the LabelOrIndex parameter to M_DEFAULT. If there is no feature with the specified name, the returned label is 0. (summarize)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. The name of the feature or tolerance is returned via the String parameter, and the name's length is returned via the ValuePtr parameter. To determine the exact size name, call this function twice, the first time to determine the size of the name, with the String parameter set to M_NULL, and the second time to return the name. (summarize)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. Set the LabelOrIndex parameter to M_DEFAULT. If there is no tolerance with the specified name, the returned index is -1. (summarize)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. Set the LabelOrIndex parameter to M_DEFAULT. If there is no tolerance with the specified name, the returned label is 0. (summarize)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. This operation requires ContextOrResultId to be a valid context identifier. In addition, the specified name of the feature or tolerance (passed in the String parameter) must be unique, and ValuePtr must be set to M_NULL. Note that you can release a name by passing M_NULL to String. (summarize)Sets the name of the feature or tolerance defined by the LabelOrIndex parameter. (more details...) |
Specifies the label or index value of the metrology feature or tolerance. Set this parameter to M_DEFAULT when not required by the name operation.
For specifying the label or index value
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
Specifies a feature by indicating its index. (summarize)Specifies a feature by indicating its index. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
Specifies a feature by indicating its label. (summarize)Specifies a feature by indicating its label. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
Specifies a tolerance by indicating its index. (summarize)Specifies a tolerance by indicating its index. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
Specifies a tolerance by indicating its label. (summarize)Specifies a tolerance by indicating its label. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Set this parameter to the following: |
|||||||||||||||||||||||||||||||||||||||
|
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 disassociate the name from the tolerance or feature.
Set this parameter to M_NULL and the Operation parameter to M_GET_NAME to determine the length of the string.
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. |