diff --git a/API_GdbObjSelection.cpp b/API_GdbObjSelection.cpp index 551f233..b02e9e6 100644 --- a/API_GdbObjSelection.cpp +++ b/API_GdbObjSelection.cpp @@ -111,3 +111,42 @@ __stdcall EgtGetPrevSelectedObj( void) { return ExeGetPrevSelectedObj() ; } + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetSelInfo( int nId, int nSub, const double ptSel[3]) +{ + return ( ExeSetSelInfo( nId, nSub, ptSel) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetLastSelInfo( int* pnLastId, int* pnLastSub, double ptLastSel[3]) +{ + // verifica parametri + if ( pnLastId == nullptr || pnLastSub == nullptr || ptLastSel == nullptr) + return FALSE ; + // recupero i dati + Point3d ptTmp ; + if ( ! ExeGetLastSelInfo( *pnLastId, *pnLastSub, ptTmp)) + return FALSE ; + // assegno risultati + VEC_FROM_3D( ptLastSel, ptTmp) + return TRUE ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPrevSelInfo( int* pnPrevId, int* pnPrevSub, double ptPrevSel[3]) +{ + // verifica parametri + if ( pnPrevId == nullptr || pnPrevSub == nullptr || ptPrevSel == nullptr) + return FALSE ; + // recupero i dati + Point3d ptTmp ; + if ( ! ExeGetPrevSelInfo( *pnPrevId, *pnPrevSub, ptTmp)) + return FALSE ; + // assegno risultati + VEC_FROM_3D( ptPrevSel, ptTmp) + return TRUE ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 691ac72..3bfede7 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ