CAD[NX]
GetParameterValue
Calling Sequence
Parameters
Description
Examples
GetParameterValue( paramname, partopt )
paramname
-
string; name of a parameter in an open NX part
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
The GetParameterValue command retrieves the value of the specified parameter 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 paramname is not of numeric type, or if there are no units associated with paramname, then an exception is raised.
withCADNX:
OpenConnection:
This example assumes that a part containing the displayed parameters is already open in NX.
GetParameterValuep6
19.6538240580533
GetParameterValuep6,withunits
19.6538240580533m
CloseConnection:
See Also
CAD[NX][GetParameterValues]
CAD[NX][SetParameterValue]
Download Help Document