How to create the component interface using Creo Toolkit in part model?
Solved! Go to Solution.
Found the solution for it. Below is element tree structure for component interface
static ElemTreeData tree[] = { {0, PRO_E_FEATURE_TREE, {(ProValueDataType)-1}}, {1, PRO_E_FEATURE_TYPE, {PRO_VALUE_TYPE_INT, {PRO_FEAT_COMP_INTERFACE}}}, {1, PRO_E_COMP_INTERFACE_NAME, {PRO_VALUE_TYPE_WSTRING}}, {1, PRO_E_COMPONENT_INTERFACE_SETS, {(ProValueDataType)-1}}, {1, PRO_E_COMP_INTERFACE_CONSTRAINTS, {(ProValueDataType)-1}}, {2, PRO_E_COMP_INTERFACE_CONSTRAINT, {(ProValueDataType)-1}}, {3, PRO_E_COMP_INTERFACE_CONSTR_TYPE, {PRO_VALUE_TYPE_INT, {4}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_REF, {PRO_VALUE_TYPE_SELECTION}}, {3, PRO_E_COMP_INTERFACE_CONSTR_REF_OFFSET, {PRO_VALUE_TYPE_DOUBLE, {0.0}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_RULE, {PRO_VALUE_TYPE_INT, {0}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_SET_ID, {PRO_VALUE_TYPE_INT, {-1}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_ATTR, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_RULE, {(ProValueDataType)-1}}, {1, PRO_E_COMP_INTERFACE_RECEIVE_TYPE, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_TYPE, {PRO_VALUE_TYPE_INT, {5200}}}, {1, PRO_E_COMP_INTERFACE_DEFAULT, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_DESCRIPTION, {PRO_VALUE_TYPE_WSTRING}} };
Found the solution for it. Below is element tree structure for component interface
static ElemTreeData tree[] = { {0, PRO_E_FEATURE_TREE, {(ProValueDataType)-1}}, {1, PRO_E_FEATURE_TYPE, {PRO_VALUE_TYPE_INT, {PRO_FEAT_COMP_INTERFACE}}}, {1, PRO_E_COMP_INTERFACE_NAME, {PRO_VALUE_TYPE_WSTRING}}, {1, PRO_E_COMPONENT_INTERFACE_SETS, {(ProValueDataType)-1}}, {1, PRO_E_COMP_INTERFACE_CONSTRAINTS, {(ProValueDataType)-1}}, {2, PRO_E_COMP_INTERFACE_CONSTRAINT, {(ProValueDataType)-1}}, {3, PRO_E_COMP_INTERFACE_CONSTR_TYPE, {PRO_VALUE_TYPE_INT, {4}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_REF, {PRO_VALUE_TYPE_SELECTION}}, {3, PRO_E_COMP_INTERFACE_CONSTR_REF_OFFSET, {PRO_VALUE_TYPE_DOUBLE, {0.0}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_RULE, {PRO_VALUE_TYPE_INT, {0}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_SET_ID, {PRO_VALUE_TYPE_INT, {-1}}}, {3, PRO_E_COMP_INTERFACE_CONSTR_ATTR, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_RULE, {(ProValueDataType)-1}}, {1, PRO_E_COMP_INTERFACE_RECEIVE_TYPE, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_TYPE, {PRO_VALUE_TYPE_INT, {5200}}}, {1, PRO_E_COMP_INTERFACE_DEFAULT, {PRO_VALUE_TYPE_INT, {0}}}, {1, PRO_E_COMP_INTERFACE_DESCRIPTION, {PRO_VALUE_TYPE_WSTRING}} };