- aggiunta funzione per apertura Jwd da stringa

- aggiunta funzione per acquisizione svg
This commit is contained in:
Emmanuele Sassi
2025-07-22 16:51:49 +02:00
parent e75cc0733c
commit 9ebc7755c7
2 changed files with 32 additions and 0 deletions
+16
View File
@@ -186,6 +186,7 @@ local function ConvertTableToGeometry( AreaTable, nParentId)
ConvertTableToGeometry( AreaTable[JWD_AREA_LIST][1], nAreaId)
end
return nAreaId
-- ANTA
elseif AreaTable[JWD_AREA_TYPE] == 'SASH' then
@@ -290,5 +291,20 @@ function WinManageProject.ReadFromFile( sFilePath, sProfileDir)
return true
end
-- funzione che apre un file jwd
function WinManageProject.ReadFromJwd( sJwd)
local tData = JSON:decode( sJwd)
-- importo il profilo
local sProfilePath = _G.sProfilePath .. '\\' .. tData[JWD_PROFILE_PATH] .. '.nge'
if not WinCreate.ImportProfile( sProfilePath) then
return false
end
-- creo le aree
return ConvertTableToGeometry( tData[JWD_AREA_LIST][1], GDB_ID.ROOT)
end
---------------------------------------------------------------------
return WinManageProject