GetParameterValue - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : CAD Package : NX : GetParameterValue

CAD[NX]

  

GetParameterValue

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GetParameterValue( paramname, partopt )

Parameters

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

Description

• 

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.

Examples

withCADNX:

OpenConnection:

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

GetParameterValuep6

19.6538240580533

(1)

GetParameterValuep6,withunits

19.6538240580533m

(2)

CloseConnection:

See Also

CAD[NX]

CAD[NX][GetParameterValues]

CAD[NX][SetParameterValue]