From 68425bd133552aa4093ce67d38ff560f2c3f5218 Mon Sep 17 00:00:00 2001 From: SaraP Date: Wed, 28 Jan 2026 11:43:08 +0100 Subject: [PATCH] DataWindow : - piccola modifica a WinGetAreaProfiles per uniformare caso telaio a caso anta. --- Designing/WinProject.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Designing/WinProject.lua b/Designing/WinProject.lua index e3de83d..bce48a2 100644 --- a/Designing/WinProject.lua +++ b/Designing/WinProject.lua @@ -493,7 +493,7 @@ _G.WinGetSashShape = WinGetSashShape ---------------------------------------------------------------------------------- local function WinGetAreaProfiles() - -- restituisce una lista dove ogni elemento è una tabella con le seguenti chiavi : GroupId = AREANBR corrispondente, SashId = eventuale sashnbr, + -- restituisce una lista dove ogni elemento è una tabella con le seguenti chiavi : GroupId = AREANBR corrispondente, SashId = eventuale sashnbr ( se telaio -1), -- Profiles = lista dei profili dei pezzi di quell'area -- recupero gli id geometrici delle aree richieste @@ -506,7 +506,7 @@ local function WinGetAreaProfiles() if vAreaIds[i] ~= GDB_ID.NULL then local nAreaType = EgtGetInfo( vAreaIds[i], WIN_AREATYPE, 'i') if nAreaType == WIN_AREATYPES.FRAME then - table.insert( tabProfiles, { GroupId = vAreaNbrs[i], Profiles = EgtGetInfo( vAreaIds[i], WIN_AREA_PROFILES, 'vs')}) + table.insert( tabProfiles, { GroupId = vAreaNbrs[i], SashId = -1, Profiles = EgtGetInfo( vAreaIds[i], WIN_AREA_PROFILES, 'vs')}) elseif nAreaType == WIN_AREATYPES.SASH then table.insert( tabProfiles, { GroupId = vAreaNbrs[i], SashId = 1, Profiles = EgtGetInfo( vAreaIds[i], WIN_AREA_PROFILES, 'vs')}) elseif nAreaType == WIN_AREATYPES.SPLIT then