fa39f868d0
- modifiche per import BTL.
78 lines
2.5 KiB
C++
78 lines
2.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : API_Exchange.cpp Data : 20.09.14 Versione : 1.5i4
|
|
// Contenuto : Funzioni import/export per API.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 20.09.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
//--------------------------- Include ----------------------------------------
|
|
#include "stdafx.h"
|
|
#include "API.h"
|
|
#include "/EgtDev/Include/EInAPI.h"
|
|
#include "/EgtDev/Include/EXeExecutor.h"
|
|
#include "/EgtDev/Include/EgtStringConverter.h"
|
|
|
|
using namespace std ;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
int
|
|
__stdcall EgtGetFileType( const wchar_t* wsFilePath)
|
|
{
|
|
return ExeGetFileType( wstrztoA( wsFilePath)) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtImportDxf( const wchar_t* wsFilePath, double dScaleFactor)
|
|
{
|
|
return ( ExeImportDxf( wstrztoA( wsFilePath), dScaleFactor) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtImportStl( const wchar_t* wsFilePath, double dScaleFactor)
|
|
{
|
|
return ( ExeImportStl( wstrztoA( wsFilePath), dScaleFactor) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtImportCnc( const wchar_t* wsFilePath)
|
|
{
|
|
return ( ExeImportCnc( wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtImportCsf( const wchar_t* wsFilePath)
|
|
{
|
|
return ( ExeImportCsf( wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtImportBtl( const wchar_t* wsFilePath, BOOL bFlatPos)
|
|
{
|
|
return ( ExeImportBtl( wstrztoA( wsFilePath), ( bFlatPos != FALSE)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtExportDxf( int nId, const wchar_t* wsFilePath)
|
|
{
|
|
return ( ExeExportDxf( nId, wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtExportStl( int nId, const wchar_t* wsFilePath)
|
|
{
|
|
return ( ExeExportStl( nId, wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
|
|
}
|