EgtInterface 1.6a3 :
- modifiche varie per gestire GLOB, LOC e GRID sui dati geometrici - aggiornamenti e miglirie varie - eliminate alcune funzioni lua ormai obsolete (ArcXY e CircleXY).
This commit is contained in:
@@ -278,6 +278,23 @@ LuaRelocateGlob( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaChangeId( lua_State* L)
|
||||
{
|
||||
// 2 parametri : Id, nNewId
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
int nNewId ;
|
||||
LuaCheckParam( L, 2, nNewId)
|
||||
LuaClearStack( L) ;
|
||||
// eseguo il cambio di identificativo
|
||||
bool bOk = ( EgtChangeId( nId, nNewId) != FALSE) ;
|
||||
// restituisco il risultato
|
||||
LuaSetReturn( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaErase( lua_State* L)
|
||||
@@ -314,6 +331,7 @@ LuaInstallGdbObjects( lua_State* L)
|
||||
lua_register( L, "EgtCopyGlob", LuaCopyGlob) ;
|
||||
lua_register( L, "EgtRelocate", LuaRelocate) ;
|
||||
lua_register( L, "EgtRelocateGlob", LuaRelocateGlob) ;
|
||||
lua_register( L, "EgtChangeId", LuaChangeId) ;
|
||||
lua_register( L, "EgtErase", LuaErase) ;
|
||||
}
|
||||
catch ( ...) {
|
||||
|
||||
Reference in New Issue
Block a user