|
Teamcenter C++ API Reference
2312
|
#include <unidefs.h>#include <map>#include <vector>#include <set>#include <base_utils/DateTime.hxx>#include <metaframework/BusinessObjectRef.hxx>#include <metaframework/BusinessObject.hxx>#include <Smc0psmcfgsupport/libsmc0psmcfgsupport_exports.h>#include <Smc0psmcfgsupport/libsmc0psmcfgsupport_undef.h>Go to the source code of this file.
Namespaces | |
| namespace | Teamcenter |
| A convenient C++ class to manage a list of tag_t. This convenient class is derived from TagList class which is only available for internal developers. | |
| namespace | Teamcenter::PSM |
| namespace | Teamcenter::PSM::SolutionVariant |
Functions | |
| int | SMC0_solution_variants_creation (std::vector< Teamcenter::PSM::SolutionVariant::MultilevelSolVarCreateInfo > &multilevelSolVarCreateInfoList, const tag_t savedVariantRule, const std::map< std::string, int > &preferencesMap, const tag_t revRule, bool multilevel, const std::map< std::string, std::string > &gvToSVType, Teamcenter::PSM::SolutionVariant::MultilevelSolVarCreateResponse &multilevelSolVarCreateResponse) |
| int SMC0_solution_variants_creation | ( | std::vector< Teamcenter::PSM::SolutionVariant::MultilevelSolVarCreateInfo > & | multilevelSolVarCreateInfoList, |
| const tag_t | savedVariantRule, | ||
| const std::map< std::string, int > & | preferencesMap, | ||
| const tag_t | revRule, | ||
| bool | multilevel, | ||
| const std::map< std::string, std::string > & | gvToSVType, | ||
| Teamcenter::PSM::SolutionVariant::MultilevelSolVarCreateResponse & | multilevelSolVarCreateResponse | ||
| ) |
Creates solution variant based on the inputs.
More details are given against each parameter of the function SMC0_solution_variants_creation.
Here is how to construct the input for the ITK
(O) Response corresponding to the created Solution Variants.
| multilevelSolVarCreateInfoList | (I) Input details of Solution Variant to be created |
| savedVariantRule | (I) Saved Variant Rule |
| preferencesMap | (I) The following preferences are used. DryRun, allLevel, RollbackOnError, StopOnError Usage: preferencesMap["DryRun"] = 1 Usage: preferencesMap["RollbackOnError"] = 1 "RollbackOnError" rolls back to the original state on error. Usage: preferencesMap["StopOnError"] = 1 "StopOnError" stops further processing on error and returns appropriate error code. Usage: preferencesMap["allLevel"] = 0 if multilevel is true and preferencesMap["allLevel"] = 0, the solution variant is created till first level. |
| revRule | (I) Input Revision Rule tag |
| multilevel | (I) multilevel (true or false) If multilevel is true, solution variants are created for all levels. If multilevel is false, solution variants are created for single level. if multilevel is true and preferencesMap["allLevel"] = 0, solution variants are created till first level. |
| gvToSVType | (I) Represents the mapping of BO type of generic and solution variant BOMLine for e.g. gvToSVType.insert( pair< std::string, std::string>( "Item", "Design" ) ) "Item" is Generic Variant BO type and "Design" is solution variant BO type. |