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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

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

maheshj
1-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

Try out the following:




int num_orders = 0;

BTW don't forget to free
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags