AnsweredAssumed Answered

IPartDoc.GetBodies2():Can't get the correct number of bodies for the part (C#)

Question asked by 煜 智 高 on Jun 4, 2019
Latest reply on Jun 4, 2019 by 煜 智 高

I used IPartDoc.GetBodies2() in C# to get the body number of the part, but only got the last body of the part (there are multiple bodies in the part), why?

This is a screenshot of my program:

 

This is a screenshot of the model tree for the file in solidworks:

 

This is a screenshot of the program output:

Outcomes