How to use Pocketing-AddGeometry function on 3DEXPERIENCE DELMIA NC ?

Hello Comunity
We'd love to get some help to solve this problem.

Problem:

I want to use AddGeometry function in DELIMfgGeometryDefinition Class.

I am trying to add geometry to Manufacturing Operation(ex Pocketing, Profile Contouring, Isoparametric Machining etc).

(I used this in 3DEXPERIENCE DELMIA Multi-axis Machining Apps)


The source I used is as follows.

...

HRESULT hr=NULL;

DELIMfgGeometryDefinition_var GeomDefinition(_spOperation); // _spOperation = Manufacturing Operation

CATString usType = ""; // "PartBottom", "Checks", "GuidingElements" etc..

CATBaseUnknown_var spItem; // geometry item to add

CATIPLMProducts_var prod; // Product to which belongs the geometry to add

......

hr = GeomDefinition->AddGeometry("Checks",spItem,prod) // S_OK But Update Falied

hr = GeomDefinition->AddGeometry("StaringPoint",spItem1,prod) // S_OK and Update Succeeded
hr = GeomDefinition->AddGeometry("EndingPoint",spItem2,prod) // S_OK and Update Succeeded

It's working as well in some manufacturing operation like facing, spiral milling, Cavities roughing etc.

but it is not working in Pocketing.

In Case : StartingPoint, EndingPoint
AddGeometry returns S_OK value. and Update Succeeded
 
In Case : Checks, PartBottom, Drives
AddGeometry returns S_OK value. but Pocketing Manufacturing Operation not update.

how can I use this function well.. ?

I want to automatically add geometry values into Pocketing.

I need help. THX.


Actual Result:

AddGeometry returns S_OK value but pocking manufacturing operation not update.


Expected Result:
To automatically add geometry values into Pocketing.

Environment :
3DEXPERIENCE R2020x.
Windows 10 Enterprise.

Can you get an answer or an example?
Please tell me if you have any information you need.
I sincerely hope you can help  

Thanks