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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

what does means of component_memb_id_tab argument in ProBomballoonByComponentCreate() ?

ndaslaniya
7-Bedrock

what does means of component_memb_id_tab argument in ProBomballoonByComponentCreate() ?

I want to create balloon using component.

Can you provide example/solution to use of ProBomballoonByComponentCreate().


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Hi Nikhil

As far as i know it refers to the feature id of the component you are associating the BOM balloon with. It takes a proarray so you have to allocate a ProArray and then use ProArrayObjectAdd to sue it in ProBomballoonByComponentCreate.


For example you can do something like this:

int * compId;

int tempId = (int)_featureIdComp;

ProArrayAlloc(0,sizeof(int),1,(ProArray*)&compId);

ProArrayObjectAdd((ProArray*)&compId,0,1,(void*)tempId);//you can now pass compId as the last argument to ProBomballoonByComponentCreate()


let me know if it helps.

The comp_memb_id_tab argument is short for Component Member ID Table.  It's basically the comp_id_table member variable of the ProAsmcomppath object.  This table contains the feature IDs of each component as you walk down the assembly tree to the component of interest.  Read the Pro/TOOLKIT API Wizard under User's Guide->Assembly: Basic Assembly Access->Structure of Assemblies and Assembly Objects for more information.  There is a nice assembly tree picture there that will help.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags