Skip to main content
1-Visitor
November 24, 2021
Solved

ProLocalGroupCreate problem

  • November 24, 2021
  • 1 reply
  • 2099 views

Hello,

 

ProGroup t_Group;
ProLocalGroupCreate((ProSolid)asm_mdl,feat_id,num_refs,L"COMPONENTS_TOP",&t_Group);

 

I have something like this, asm_mdl is an assembly with many part components in, feat_id is an array (feature id) of some (not all) components part inside the assembly, num_refs is the size of the array.

 

When I run it, a confirmation window opens and says "Group all features in between YES or NO".

When Yes, it creates a Group with all components in the assembly.

When No, nothing happens.

 

My problem is that I want to group only some part component (the id I have putted in the array) not all.

Another problem, when I create two groups sequentially, the second group is created inside the first group. How can I avoid it?

 

Thank you guys!

 

@MichelH @YaroslavSin @rghadge @RPN 

Best answer by RPN

A group must be a continues set of feature ids, the feature number must be n,n+1,n+2 ....

 

From the Creo Help:

 

If there are features between the specified features in the regeneration list, you are prompted to group all the features in between. If you do not want to group some of the features within the sequential order, first reorder the features.

 

 

 

1 reply

RPN
RPN18-OpalAnswer
18-Opal
November 24, 2021

A group must be a continues set of feature ids, the feature number must be n,n+1,n+2 ....

 

From the Creo Help:

 

If there are features between the specified features in the regeneration list, you are prompted to group all the features in between. If you do not want to group some of the features within the sequential order, first reorder the features.

 

 

 

1-Visitor
November 25, 2021

Yes, you are right. I need to reorder it.