From dae15e8893bcfa1318ae3f0d63754f80b4d3d911 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 27 Jul 2020 18:46:50 +0000 Subject: [PATCH] DataBeamWall : - corretta abilitazione/disabilitazione features per Outline e Aperture. --- DisableFeatures.lua | 5 +++-- EnableFeatures.lua | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/DisableFeatures.lua b/DisableFeatures.lua index 96d84f8..cb5c4b2 100644 --- a/DisableFeatures.lua +++ b/DisableFeatures.lua @@ -1,4 +1,4 @@ --- DisableFeatures.lua by Egaltech s.r.l. 2020/04/06 +-- DisableFeatures.lua by Egaltech s.r.l. 2020/07/27 -- Gestione disabilitazione delle feature selezionate -- Intestazioni @@ -18,7 +18,8 @@ local nId = EgtGetFirstSelectedObj() while nId do -- verifico sia una feature local nParentId = EgtGetParent( nId) - if EgtIsLayer( nParentId or GDB_ID.NULL) and EgtGetName( nParentId) == 'Processings' and + if EgtIsLayer( nParentId or GDB_ID.NULL) and + ( EgtGetName( nParentId) == 'Processings' or EgtGetName( nParentId) == 'Outline') and EgtGetInfo( nId, 'GRP', 'i') and EgtGetInfo( nId, 'PRC', 'i') then EgtSetInfo( nId, 'DO', 0) EgtSetColor( nId, Color3d( 160, 160, 160)) diff --git a/EnableFeatures.lua b/EnableFeatures.lua index d7ad536..bd73193 100644 --- a/EnableFeatures.lua +++ b/EnableFeatures.lua @@ -1,4 +1,4 @@ --- DisableFeatures.lua by Egaltech s.r.l. 2020/04/06 +-- DisableFeatures.lua by Egaltech s.r.l. 2020/07/27 -- Gestione abilitazione delle feature selezionate -- Intestazioni @@ -18,13 +18,22 @@ local nId = EgtGetFirstSelectedObj() while nId do -- verifico sia una feature local nParentId = EgtGetParent( nId) - if EgtIsLayer( nParentId or GDB_ID.NULL) and EgtGetName( nParentId) == 'Processings' and + if EgtIsLayer( nParentId or GDB_ID.NULL) and + ( EgtGetName( nParentId) == 'Processings' or EgtGetName( nParentId) == 'Outline') and EgtGetInfo( nId, 'GRP', 'i') and EgtGetInfo( nId, 'PRC', 'i') then EgtRemoveInfo( nId, 'DO') - EgtResetColor( nId) + if EgtGetName( nParentId) == 'Processings' then + EgtResetColor( nId) + else + EgtSetColor( nId, Color3d( 80, 160, 160)) + end local nAuxId = EgtGetInfo( nId, 'AUXID', 'i') if nAuxId then - EgtResetColor( nId + nAuxId) + if EgtGetName( nParentId) == 'Processings' then + EgtResetColor( nId + nAuxId) + else + EgtSetColor( nId + nAuxId, Color3d( 80, 160, 160)) + end end table.insert( vParts, EgtGetParent( nParentId)) end