Hi,
I am having issues in trying to get the parasolid data (GetPartitionStream( ) method) from an assembly using the Document Manager only. The example shows to just execute that statement using a SwDMConfiguration12 object, however it returns noBodyDataError. If i attempt to output bodyCount it is 0. With the SwDMDocument12 class, i can get the number of components in the assembly file using object.GetComponentCount(), which returns 2 which is correct for my test case, however when i try SwDMConfiguration12 object.GetComponents() it returns null. I have perused the forums, but i have not found anything helpful, and the examples that are related to this, i have followed, and none of them work as stated they should. This is using only the DocumentManager API, not the SolidWorks API. The code I am using is
I have also attached my test assembly file, it is just 2 of the sphere.sldprt. I have also tried it with several of the sample assemblies, specifically the 98foodProcessor, witht he same results.
Thanks!
SolidworksApi macros