From 6b3ab7e9b0d34f27ae73dadf0d7a3ef98d431bbe Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Thu, 21 Sep 2023 14:41:31 +0200 Subject: [PATCH] EgtExecutor : - introdotto l'uso della grafica di default per gli ExtDim importati da 3dm. --- EXE_Exchange.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/EXE_Exchange.cpp b/EXE_Exchange.cpp index 9fc49fd..c3eb232 100644 --- a/EXE_Exchange.cpp +++ b/EXE_Exchange.cpp @@ -373,7 +373,16 @@ ExeImport3dm( const string& sFilePath, double dScaleFactor) PtrOwner pImp3dm( MyCreateImport3dm()) ; bOk = bOk && ! IsNull( pImp3dm) ; // eseguo l'importazione - bOk = bOk && pImp3dm->Import( sFilePath, pGseCtx->m_pGeomDB, nLayerId, dScaleFactor) ; + const DimensionStyle& DimSt = pGseCtx->m_dsCurr ; + double dExtLine = DimSt.dExtLineLen ; + double dArrLen = DimSt.dArrowLen ; + double dTextDist = DimSt.dTextDist ; + bool bLenIsMM = ( DimSt.nLenIsMM == 2 ? ExeUiUnitsAreMM() : ( DimSt.nLenIsMM != 0 )) ; + int nDecDig = DimSt.nDecDigit ; + string sFont = DimSt.sFont ; + double dTextHeight = DimSt.dTextHeight ; + bOk = bOk && pImp3dm->Import( sFilePath, pGseCtx->m_pGeomDB, nLayerId, dScaleFactor, + dTextHeight, dExtLine, dArrLen, dTextDist, bLenIsMM, nDecDig, sFont) ; // aggiorno stato file corrente if ( pGseCtx->m_sFilePath.empty()) pGseCtx->m_sFilePath = sFilePath ;