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

How to find number of shells belongs to current solid in creo ?

Highlighted
Newbie

How to find number of shells belongs to current solid in creo ?

Hi All,


I am implementing Creo API for finding Shells from given solid.I have written following code.


ProSldsurfaceShellorder *shell_order;
ProSldsurfaceShellface *shell_faces;

/*---------------------------------------------------------------------*\
List the shell members of this solid
\*---------------------------------------------------------------------*/


ProSldsurfaceShellsAndVoidsFind(*mProSolid,&shell_order,&shell_faces);


It works fine for me. It gives correct result,but only problem is that I cant get how many number of shells are found.


Means I could not get length of array shell_order. shell_order contains information for each shell.


So is ther any way to find out length of this array shell_order.


thanks in adavance.




1 REPLY 1

RE: How to find number of shells belongs to current solid in creo ?

Try out the following:




int num_orders = 0;

BTW don't forget to free