SolidEdgeAssembly.Tube.Path (...) does not work ! (ST3)

Hello everyone.

 

I executed following program I made.

But it fails, exception occurs.

Does anyone give me an advice ? Please.

 

.....

 

Tube * pTube = pOccurrence->GetTube();

try {

 

   long NumElementsInPath;

 

   VARIANT vPath;

   VariantInit(&vPath);

   V_VT(&vPath) = VT_ARRAY | VT_DISPATCH;

 

   VARIANT vReversed;

   VariantInit(&vReversed);

   V_VT(&vReversed) = VT_ARRAY | VT_BOOL;

 

   HRESULT res = pTube->Path(&NumElementsInPath, &vPath, &vReversed);

   //HRESULT res = pTube->Path(&NumElementsInPath); 

 

   if(FAILED(res)) _com_issue_error(res);

 }

 

.....

 

 

 

 

 

Posted by: Toshiyuki Hamanaka
Post date: 7/6/2011 7:25:24 PM