CAD[NX] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : CAD Package : NX : CAD/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

withCAD[NX]:

OpenConnection:

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

GetParameterValuep6

19.6538240580533

(1)

GetParameterValuep6,'withunits'

19.6538240580533Units:-Unitm

(2)

CloseConnection:

See Also

CAD[NX]

CAD[NX][GetParameterValues]

CAD[NX][SetParameterValue]

 


Download Help Document

Was this information helpful?



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