cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Component Interface feature using Creo Toolkit

SOLVED
Highlighted
Level 10

Create Component Interface feature using Creo Toolkit

How to create the component interface using Creo Toolkit in part model?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Create Component Interface feature using Creo Toolkit

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}}
	};
1 REPLY 1

Re: Create Component Interface feature using Creo Toolkit

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}}
	};