Retrieving absolute position of mechanical ports

Hello,

I am looking for an api in CAA which will give me absolute position of mechanical ports.

Right now I m getting relative position with below code

 

        CATBaseUnknown* opBUOcc = NULL;
        CATBaseUnknown* opBURep = NULL;
        CATBaseUnknown* opBUGeo = NULL;

        rc = _mpMechPorts->RetrievePortLink(pPort, &opBUOcc, &opBURep, &opBUGeo);
        if (FAILED(rc))
        {
            return FALSE;
        }

        CATIMf3DAxisSystem* pNewAxisSystem = NULL;
        rc = opBUGeo->QueryInterface(IID_CATIMf3DAxisSystem, (void**)&pNewAxisSystem);
                
        CATMathAxis TCPMathAxis;
        
        pNewAxisSystem->GetMathAxis(TCPMathAxis);