CAD[NX] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : CAD Package : NX : CAD/NX/GetParameterValues

CAD[NX]

 GetParameterValues

 Calling Sequence GetParameterValues( partopt )

Parameters

 partopt - (optional) equation of the form part = partfile: optional name of an NX part file withunits - truefalse; (optional) if set to true, then return value with units attached

Description

 • The GetParameterValues command retrieves the values of all parameters in an open NX part. If no part = partfile argument is given, then the parameter is taken to be in the current work part.
 • Note that the withunits option is only valid for parameters of numeric type. If a parameter appearing in the result list is not of numeric type, or if there are no units associated with it, the value is returned without units.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{NX}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$

This example assumes that a part containing the displayed parameters is already open in NX.

 > $\mathrm{GetParameterValues}\left(\right)$
 $\left[{"p6"}{=}{19.6538240580533}\right]$ (1)
 > $\mathrm{GetParameterValues}\left('\mathrm{withunits}'\right)$
 $\left[{"p6"}{=}{19.6538240580533}{}{\mathrm{Units:-Unit}}{}\left({m}\right)\right]$ (2)
 > $\mathrm{CloseConnection}\left(\right):$

Compatibility

 • The CAD[NX][GetParameterValues] command was introduced in Maple 17.
 • For more information on Maple 17 changes, see Updates in Maple 17.

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam