From 626e24e150d1502b647ae747710372c2dace4171 Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Thu, 21 Sep 2023 17:05:04 +0200 Subject: [PATCH] EgtExecutor : - aggiunta del 3dm Export. --- DllExchange.cpp | 18 ++++++++++++++++++ DllExchange.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/DllExchange.cpp b/DllExchange.cpp index 6670035..a3630a2 100644 --- a/DllExchange.cpp +++ b/DllExchange.cpp @@ -10,6 +10,8 @@ // 03.07.18 DS Aggiunto ImportPnt. // 15.09.19 DS Aggiunto ExportSvg. // 14.12.20 DS Aggiunto ImportBtlx. +// 23.06.23 DB Aggiunto Import3dm. +// 21.09.23 DB Aggiunto Export3dm. // //---------------------------------------------------------------------------- @@ -53,6 +55,7 @@ static const char* EEX_CREATEIMPORT3DM = "CreateImport3dm" ; static const char* EEX_CREATEEXPORTDXF = "CreateExportDxf" ; static const char* EEX_CREATEEXPORTSTL = "CreateExportStl" ; static const char* EEX_CREATEEXPORT3MF = "CreateExport3MF" ; +static const char* EEX_CREATEEXPORT3DM = "CreateExport3dm" ; static const char* EEX_CREATEEXPORTSVG = "CreateExportSvg" ; static const char* EEX_SETTHREEJSLIBDIR = "SetThreeJSLibDir" ; static const char* EEX_CREATEEXPORTTHREEJS = "CreateExportThreeJS" ; @@ -377,6 +380,21 @@ MyCreateExport3MF( void) return pFun() ; } +//----------------------------------------------------------------------------- +IExport3dm* +MyCreateExport3dm( void) +{ + // verifico caricamento libreria EgtExchange + if ( s_hEEx == nullptr) + return nullptr ; + // recupero funzione creazione oggetto + typedef IExport3dm* (* PF_CreateExport3dm) ( void) ; + PF_CreateExport3dm pFun = (PF_CreateExport3dm)GetProcAddress( s_hEEx, EEX_CREATEEXPORT3DM) ; + if ( pFun == nullptr) + return nullptr ; + return pFun() ; +} + //----------------------------------------------------------------------------- IExportSvg* MyCreateExportSvg( void) diff --git a/DllExchange.h b/DllExchange.h index 0a536bc..90b6d11 100644 --- a/DllExchange.h +++ b/DllExchange.h @@ -29,6 +29,7 @@ class IImport3dm ; class IExportDxf ; class IExportStl ; class IExport3MF ; +class IExport3dm ; class IExportThreeJS ; class IExportSvg ; class IExcExecutor ; @@ -55,6 +56,7 @@ IImport3dm* MyCreateImport3dm( void) ; IExportDxf* MyCreateExportDxf( void) ; IExportStl* MyCreateExportStl( void) ; IExport3MF* MyCreateExport3MF( void) ; +IExport3dm* MyCreateExport3dm( void) ; bool MySetThreeJSLibDir( const std::string& sThreeJSLibDir) ; IExportThreeJS* MyCreateExportThreeJS( void) ; IExportSvg* MyCreateExportSvg( void) ;