Message 1 of 2
Convert component workplane to assembly workplaneproxy?

Not applicable
03-28-2003
12:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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);
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);