| |
Exports a file containing information from the parameter
table in Creo Parametric in the CSV or TXT format.
Exceptions thrown (but not limited to):
XToolkitBadContext - The owner is invalid or not found and/or Design Test Mode is active - the function is not available in this mode
XToolkitNotFound - The owner does not contain parameters.
XToolkitCantWrite - Creo Parametric could not write to the file path specified.
XToolkitInvalidType - Invalid context for top_model argument.
-
Manual References:
-
Dimensions and Parameters: Creating and Accessing Parameters
-
Parameters:
-
-
TopMdl
- The top level model from which parameters will be exported.
-
Contexts
- A list containing the context of parameters to list in the export.
(Members of pfcParameterSelectionContext).
Used only if "owner" is NULL.
The following options are supported:
- pfcPARAMSELECT_ALLOW_SUBITEM_SELECTION alone,
all parameters of all subitems of top_model will be
exported.
- pfcPARAMSELECT_ALLOW_SUBITEM_SELECTION and
other contexts, only the indicated contexts'
parameters will be exported.
- pfcPARAMSELECT_MODEL, pfcPARAMSELECT_PART or
pfcPARAMSELECT_ASM: all model level parameters in
top model will be exported.
No other combination is permitted.
-
ExportType
- The type of export file to create.
-
Path
- Full path to the file to export (including name and extension).
-
Columns
- A list containing one or more columns to include in the exported file.
This applies only
when the file is being exported in the CSV format,
and not when the file is being exported in the TXT
format (where the columns exported will match the
columns and options set by the user in the active
session, in accordance with the behavior of
File->Export in the Parameter dialog box).
-
Owner
-
The owner of the parameters to be exported. May be NULL if the parameter should be selected by context.
-
Returns:
|