Convert component workplane to assembly workplaneproxy?

Convert component workplane to assembly workplaneproxy?

Anonymous
Not applicable
264 Views
1 Reply
Message 1 of 2

Convert component workplane to assembly workplaneproxy?

Anonymous
Not applicable
Hi, friends. I write the following code in vc, but it display the below error information:
error C2664: 'CreateGeometryProxy' : Konvertierung des Parameters 2 von 'class _com_ptr_t

i don't know why? Can anyone tell me the reason?

the code is in following:

WorkPlanePtr pPartPlane1;

pPartPlane1=pComDef1->WorkPlanes->GetItem("workplane");

ComponentOccurrencePtr pOcc1

WorkPlaneProxyPtr pAsmPlane1;

pOcc1->CreateGeometryProxy(pPartPlane1, pAsmPlane1);
0 Likes
265 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
the code is in following:

WorkPlanePtr pPartPlane1;
pPartPlane1=pComDef1->WorkPlanes->GetItem("workplane");
ComponentOccurrencePtr pOcc1;
WorkPlaneProxyPtr pAsmPlane1;
pOcc1->CreateGeometryProxy(pPartPlane1, pAsmPlane1);
0 Likes