how can get curve bodies??

how can get curve bodies??

Anonymous
Not applicable
288 Views
1 Reply
Message 1 of 2

how can get curve bodies??

Anonymous
Not applicable

InkedQQ截图20170803163039_LI.jpghello everyone! Look at the red screen on the left screenshot, i want to get the surface Bodies(1),but with the code by C++:

CComPtr<SurfaceBodies> surfaceBodies;
pCompDef->get_SurfaceBodies(&surfaceBodies);
cout << "count:" << surfaceBodies->Count << endl;

cann't get the curvebodies.Please help me.Thanks you very much!!!!!!!!!!!!!!!!!!!

0 Likes
289 Views
1 Reply
Reply (1)
Message 2 of 2

YuhanZhang
Autodesk
Autodesk

In Inventor API, the UI Solid Bodies are represented by SurfaceBodies object, while the Surface Bodies are represented by WorkSurfaces object. Please try to WorkSurfaces to get the Surface Bodies in UI. Hope this helps.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes