Skip to main content
1-Visitor
April 30, 2013
Question

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

  • April 30, 2013
  • 1 reply
  • 738 views

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-Visitor
    April 30, 2013

    Try out the following:




    int num_orders = 0;

    BTW don't forget to free