Functions introduced:
The function ProParameterInit() initializes a ProParameter object by defining its name and owner. The owner is expressed in terms of a ProModelitem object, and can be a Creo Parametric model, feature, surface, or edge.
If the owner is a model, use ProMdlToModelitem() to create the ProModelitem object; in other cases, use ProModelitemInit().
The function
ProParameterValueWithUnitsGet() reads the value of a parameter specified by a
ProParameter object into a
ProParamvalue object provided by the application. The function also retrieves the units in which the parameter value was expressed. The
output arguments of this function are as follows:
|
• |
proval—The value held in the ProParameter object and is assumed to be in the specified units. Pass this as NULL to get the value in owner model units. |
|
• |
units—The units in which the value is expressed. Pass this as NULL if unit is not required. If the value is not found, an empty string is returned. |
The function
ProParameterValueWithUnitsSet() sets the value of a
Creo Parametric parameter identified by a
ProParameter object to a value specified in a
ProParamvalue structure. The parameter is expressed using the value specified for the input parameter
units.
Note
If the input argument units is passed as NULL, then the parameter will have the same units as that of the owner model.
The ProParameterIsModified() function returns a boolean value that indicates whether the value of the specified parameter has been modified since the
last successful regeneration of the parameter owner. This function works successfully for solid models only.
The function ProParameterValueReset() sets the value of a parameter to the one it had at the end of the last regeneration.
The function ProParameterDelete() deletes a parameter, specified by a ProParameter object, from the Creo Parametric database.
The function ProParameterSelect() allows the user to select one or more parameters of a specified model or database item from the Parameters dialog box in Creo Parametric . The top model from which the parameters will be selected must be displayed in the current window. The input argument context allows you to select parameters by context. It takes the following values:
|
• |
PRO_PARAMSELECT_ANY—Specifies any parameter. |
|
• |
PRO_PARAMSELECT_MODEL—Specifies the parameters of the top-level model. |
|
• |
PRO_PARAMSELECT_PART—Specifies the parameters of any part. |
|
• |
PRO_PARAMSELECT_ASM—Specifies the parameters of any assembly. |
|
• |
PRO_PARAMSELECT_FEATURE—Specifies the parameters of any feature. |
|
• |
PRO_PARAMSELECT_EDGE—Specifies the parameters of any edge. |
|
• |
PRO_PARAMSELECT_SURFACE—Specifies the parameters of any surface. |
|
• |
PRO_PARAMSELECT_QUILT—Specifies the parameters of any quilt. |
|
• |
PRO_PARAMSELECT_CURVE—Specifies the parameters of any curve. |
|
• |
PRO_PARAMSELECT_COMPOSITE_CURVE—Specifies the parameters of any composite curve. |
|
• |
PRO_PARAMSELECT_INHERITED—Specifies the parameters of any inheritance feature. |
|
• |
PRO_PARAMSELECT_SKELETON—Specifies the parameters of any skeleton. |
|
• |
PRO_PARAMSELECT_COMPONENT—Specifies the parameters of any component. |
|
• |
PRO_PARAMSELECT_ALLOW_SUBITEM_SELECTION—Specifies the parameters of all the subitems of the top model. |
Note
The signature of ProParameterSelect() has changed from Pro/ENGINEER Wildfire 2.0 onward.
The function ProParameterTableExport() exports a file containing information from a parameter table in Creo Parametric in the CSV or TXT format. If the output type is CSV, the output file contains the columns specified by the input argument
column_list, which is a bitmask of columns. In the CSV format, only the local parameters are exported. However, if the output type is
TXT, then a default set of columns is exported. In the TXT format, all the parameters in the specified model are exported.
The function ProParameterVisit() visits all the parameters on a specified database item.
Note
|
• |
The parameters are returned in the order that they appear in the parameter dialog box for the database item. |
|
• |
ProParameterVisit() does not visit mass property parameters. |
The function ProParameterReorder() reorders the given parameter to come just after the indicated parameter.
The function ProParameterToFamtableItem() converts ProParameter objects to ProFamtableItem objects. You may need to call ProParameterToFamtableItem() after calling ProParameterSelect() that allows you to select parameters from a menu.
The function ProParameterUnitsGet() fetches the units assigned to a parameter.
The function ProParameterUnitsAssign() assigns the specified unit to a parameter. If the parameter already has a unit assigned to it, the function will reassign
the specified unit to it. The function can reassign unit only from the same quantity type. To convert a parameter with unit
to a unitless parameter, pass the input argument units as NULL.
The function ProParameterWithUnitsCreate() enables the creation of a new parameter with the assigned units. To create a parameter without units, pass the input argument
units as NULL.
The function ProParameterScaledvalueGet() retrieves the parameter value in terms of the units of the parameter, instead of the units of the owner model.
The function ProParameterScaledvalueSet() sets the parameter value in terms of the units provided, instead of using the units of the owner model.
The function ProParameterDescriptionGet() obtains the description of the parameter. The function ProParameterDescriptionSet() assigns the description of the parameter.
The function
ProParameterLockstatusGet() returns the access state of the specified parameter. Use the function
ProParameterLockstatusSet() to set the access state for the specified parameter. The access state is defined in the enumerated data type
ProLockstatus. The valid values are:
|
• |
PRO_PARAMLOCKSTATUS_UNLOCKED—Parameters with full access are user-defined parameters, that can be modified from any application. |
|
• |
PRO_PARAMLOCKSTATUS_LIMITED—Full access parameters can be set to have limited access. Limited access parameters can be modified by user, family tables
and programs. These parameters cannot be modified by relations. |
|
• |
PRO_PARAMLOCKSTATUS_LOCKED—Parameters with locked access are parameters that can be locked either by an external application, or by the user. If you
have set the access state for a parameter using the function ProParameterLockstatusSet() and need to modify the parameter, you can change the access state from locked status to full access and then edit the parameter
value. This can be done from an external application or an open Creo session. |
The function ProParameterIsInactive() determines if the specified parameter is inactive.
Note
The function supports symbol instance and surface finish annotation element parameters only.
If the parameter is inactive due to current customization of symbol, the function outputs a ProBoolean with the value PRO_B_TRUE. Otherwise the function returns PRO_B_FALSE.