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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How to pass _ModelItemType_null as argument of wfcComponentFeat.AssemblyItemInstructions_Create

Gucio
15-Moonstone

How to pass _ModelItemType_null as argument of wfcComponentFeat.AssemblyItemInstructions_Create

Hi All,

 

I'm playing with flexible component in otk. 

I'm able to set as a flexible component in the case when the flexibility of the part was done by dimensions (ModelItemType.ITEM_DIMENSION). 

 

Part of my code:

 AssemblyItemInstructions ThisAsmInstr = wfcComponentFeat.AssemblyItemInstructions_Create(ItemOwner,
ModelItemType.ITEM_DIMENSION, dim_id_array.get(i));

 

Question is: what is the proper syntax of ModelItemType argument, to get parameter??

There is written in "Creo Object TOOLKIT Java User's Guide 7.04.0" page 494:

 

(...)wfcComponentFeat.wfcComponentFeat.AssemblyItemInstructions_Create creates a new instance of the object wfcAssemblyItemInstruction that contains the instructions to define a variant item for a flexible component. Specify the model owner, item type, and item ID as input arguments of this method. The input arguments are:
• ItemOwner— Specifies the model owner of the item or parameter.
• ItemType— Specifies the item type. The value of this argument is ignored for
parameter. For parameter, pass this value as _ModelItemType_null.
• ItemId— Specifies the item identifier.
• ItemName— Specifies the parameter name.

 

Any idea how it should be used??

Regards. 

 

Krzysztof
0 REPLIES 0
Announcements


Top Tags