- aggiunta funzione per apertura Jwd da stringa
- aggiunta funzione per acquisizione svg
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user