EgtExecutor 2.2l2 :

- aggiunto nuovo tipo di file BTLx (FT_BTLX = 19)
- aggiunta funzione Exe e Lua ImportBtlx
- aggiunte funzioni Exe e Lua per BeamMgr creazione e modifica travi e pareti e aggiunta features.
This commit is contained in:
Dario Sassi
2020-12-14 11:37:43 +00:00
parent db726f6fd6
commit 45087f4e28
11 changed files with 456 additions and 4 deletions
+18
View File
@@ -39,6 +39,23 @@ LuaImportBtl( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaImportBtlx( lua_State* L)
{
// 1 o 2 : FilePath [, Flag]
string sFilePath ;
LuaCheckParam( L, 1, sFilePath)
int nFlag = EIB_FLAG_NONE ;
LuaGetParam( L, 2, nFlag) ;
LuaClearStack( L) ;
// apro il file
bool bOk = ExeImportBtlx( sFilePath, nFlag) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaImportCnc( lua_State* L)
@@ -200,6 +217,7 @@ LuaInstallExchange( LuaMgr& luaMgr)
{
bool bOk = ( &luaMgr != nullptr) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtImportBtl", LuaImportBtl) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtImportBtlx", LuaImportBtlx) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtImportCnc", LuaImportCnc) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtImportCsf", LuaImportCsf) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtImportDxf", LuaImportDxf) ;