- tutti i campi Id sostituiti con id (minuscolo)

- in FaceData aggiunta scrittura Edges (GetFaceInfo) e MainEdges (BottomFace e LongFaces)
This commit is contained in:
luca.mazzoleni
2024-05-16 18:16:22 +02:00
parent 6a89e6e29d
commit 1a82df39ad
6 changed files with 175 additions and 101 deletions
+4 -4
View File
@@ -80,13 +80,13 @@ local function MyProcessInputData()
if nPartId then
local bFound = false
for i = 1, #vBeam do
if vBeam[i].Id == nPartId then
if vBeam[i].id == nPartId then
bFound = true
break
end
end
if not bFound then
table.insert( vBeam, { nInd = #vBeam + 1, Id = nPartId, sName = ( EgtGetName( nPartId) or ( 'Id=' .. tonumber( nPartId)))})
table.insert( vBeam, { nInd = #vBeam + 1, id = nPartId, sName = ( EgtGetName( nPartId) or ( 'Id=' .. tonumber( nPartId)))})
end
end
nId = EgtGetNextSelectedObj()
@@ -105,7 +105,7 @@ local function MyProcessInputData()
-- Ne recupero e verifico le dimensioni
for i = 1, #vBeam do
local Ls = EgtGetFirstNameInGroup( vBeam[i].Id, 'Box')
local Ls = EgtGetFirstNameInGroup( vBeam[i].id, 'Box')
local b3Solid = EgtGetBBoxGlob( Ls or GDB_ID.NULL, GDB_BB.STANDARD)
if not b3Solid then
EgtOutBox( 'Box non definito per la trave ' .. vBeam[i].sName, 'Lavora Travi', 'ERROR')
@@ -129,7 +129,7 @@ local function MyProcessInputData()
local sOut = 'Rimosse travi con sezioni diverse dalla prima :\n'
for i = #vBeamErr, 1, -1 do
sOut = sOut .. vBeam[vBeamErr[i]].sName .. '\n'
EgtDeselectPartObjs( vBeam[vBeamErr[i]].Id)
EgtDeselectPartObjs( vBeam[vBeamErr[i]].id)
table.remove( vBeam, vBeamErr[i])
end
EgtOutLog( sOut, 1)