EgtExecutor 1.6g6 :
- aggiunta gestione unità di misura di interfaccia (mm o inch) - aggiunta ExeGetLanguage e EgtGetLanguage (lua) per avere sigla della lingua utilizzata.
This commit is contained in:
+13
-8
@@ -18,6 +18,7 @@
|
||||
#include "AuxTools.h"
|
||||
#include "/EgtDev/Include/EXeExecutor.h"
|
||||
#include "/EgtDev/Include/EGkStringUtils3d.h"
|
||||
#include "/EgtDev/Include/EGkUiUnits.h"
|
||||
#include "/EgtDev/Include/EgtStringConverter.h"
|
||||
#include "/EgtDev/Include/EgtPointerOwner.h"
|
||||
|
||||
@@ -469,12 +470,14 @@ ExeGroupDump( int nId, string& sDump)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// flag per unità di misura di uscita
|
||||
bool bMM = ExeUiUnitsAreMM() ;
|
||||
// preparo l'intestazione
|
||||
sDump = "Group " + ToString( nId) + "\r\n" ;
|
||||
// preparo gli attributi
|
||||
pGeomDB->DumpAttributes( nId, sDump, "\r\n") ;
|
||||
pGeomDB->DumpAttributes( nId, sDump, bMM, "\r\n") ;
|
||||
// preparo UserObj
|
||||
pGeomDB->DumpUserObj( nId, sDump, "\r\n") ;
|
||||
pGeomDB->DumpUserObj( nId, sDump, bMM, "\r\n") ;
|
||||
// numero di nodi (figli)
|
||||
int nNodes = pGeomDB->GetGroupObjs( nId) ;
|
||||
sDump += "Nodes : " + ToString( nNodes) + "\r\n" ;
|
||||
@@ -482,7 +485,7 @@ ExeGroupDump( int nId, string& sDump)
|
||||
Frame3d frGlob ;
|
||||
if ( pGeomDB->GetGroupGlobFrame( nId, frGlob)) {
|
||||
sDump += "GlobFrame :\r\n" ;
|
||||
sDump += " O(" + ToString( frGlob.Orig()) + ")\r\n" ;
|
||||
sDump += " O(" + ToString( GetInUiUnits( frGlob.Orig(), bMM)) + ")\r\n" ;
|
||||
sDump += " X(" + ToString( frGlob.VersX()) + ")\r\n" ;
|
||||
sDump += " Y(" + ToString( frGlob.VersY()) + ")\r\n" ;
|
||||
sDump += " Z(" + ToString( frGlob.VersZ()) + ")\r\n" ;
|
||||
@@ -493,8 +496,8 @@ ExeGroupDump( int nId, string& sDump)
|
||||
sDump += "GlobBBox :\r\n" ;
|
||||
Point3d ptMin, ptMax ;
|
||||
if ( b3Glob.GetMinMax( ptMin, ptMax)) {
|
||||
sDump += " m(" + ToString( ptMin) + ")\r\n" ;
|
||||
sDump += " M(" + ToString( ptMax) + ")\r\n" ;
|
||||
sDump += " m(" + ToString( GetInUiUnits( ptMin, bMM)) + ")\r\n" ;
|
||||
sDump += " M(" + ToString( GetInUiUnits( ptMax, bMM)) + ")\r\n" ;
|
||||
}
|
||||
else {
|
||||
sDump += " Empty\r\n" ;
|
||||
@@ -509,6 +512,8 @@ ExeGeoObjDump( int nId, string& sDump)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// flag per unità di misura di uscita
|
||||
bool bMM = ExeUiUnitsAreMM() ;
|
||||
// recupero l'oggetto geometrico
|
||||
const IGeoObj* pGeoObj = pGeomDB->GetGeoObj( nId) ;
|
||||
if ( pGeoObj == nullptr)
|
||||
@@ -516,11 +521,11 @@ ExeGeoObjDump( int nId, string& sDump)
|
||||
// preparo l'intestazione
|
||||
sDump = pGeoObj->GetTitle() + " " + ToString( nId) + "\r\n" ;
|
||||
// preparo gli attributi
|
||||
pGeomDB->DumpAttributes( nId, sDump, "\r\n") ;
|
||||
pGeomDB->DumpAttributes( nId, sDump, bMM, "\r\n") ;
|
||||
// preparo UserObj
|
||||
pGeomDB->DumpUserObj( nId, sDump, "\r\n") ;
|
||||
pGeomDB->DumpUserObj( nId, sDump, bMM, "\r\n") ;
|
||||
// recupero i dati geometrici
|
||||
if ( ! pGeoObj->Dump( sDump, "\r\n"))
|
||||
if ( ! pGeoObj->Dump( sDump, bMM, "\r\n"))
|
||||
return false ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user