HJTrost
Registered:1473881721 Posts: 3
Posted 1473884533
Reply with quote
#1
I am trying to use scConverter to set up conversion of Gerber RS274X files to monochrome Windows bitmaps. I use MinGW on a Windows 7 32-bit system. I'm in the trial period to figure out whether this fits my purpose. In principle, my first conversion test program works. In detail, I get the pixel resolution wrong. Asking for 508 dpi, ViewCompanion and other tools tell me I should see 608x670 pixels. I get 5984x6596 instead. My test program source is included below; it is derived from the one posted in the Sample Code thread of the scConverter forum section. Does anybody know or see what is going wrong? Cheers, Jochen #include <stdio.h> #include <string.h> #include <windows.h> //scConverter.dll exported functions typedef int ( *SC_SET_IMPORTERPATH)( WCHAR *Path); typedef int ( *SC_CONVERT_FILE)( WCHAR *pSerialNumber, WCHAR *pInputFile, WCHAR *pOutputFile, WCHAR *pFormat, double dScale, long lBitsPerPixel, long lDPI ); int ConvertFile( WCHAR *InputFile, WCHAR *OutputFile, WCHAR *Format, long BitsPerPixel, long DPI) { int result; WCHAR *path(L"C:\\Program Files\\Software Companions\\scConverter\\"), *sernum(L"") ; HINSTANCE hLib = LoadLibrary( TEXT("C:\\Program Files\\Software Companions\\scConverter\\scConverter.dll") ); printf("%d = LoadLibrary(...)\n", result) ; if (!hLib) return -1; //Get function pointers SC_CONVERT_FILE ConvertFileFunc = (SC_CONVERT_FILE)GetProcAddress( hLib, "scConvertFile" ); SC_SET_IMPORTERPATH SetImporterPathFunc = (SC_SET_IMPORTERPATH)GetProcAddress( hLib, "scImportersPath" ); //Setup and do the conversion result = SetImporterPathFunc(path) ; printf("%d = SetImporterPathFunc(...)\n", result) ; result = ConvertFileFunc( sernum, InputFile, OutputFile, Format, 1.0, BitsPerPixel, DPI ); printf("%d = ConvertFileFunc(...)\n", result) ; FreeLibrary( hLib ); return result; } int main(void) { int result ; //create monochrome BMP, 508 dots per inch result = ConvertFile( L"PATTERN1.gbr", L"test.bmp", L"BMP", 1, 508 ); printf("\nDone with result=%d.\n", result) ; return 0 ; }
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1473931460
Reply with quote
#2
Hi, Thank you for contacting us. Would it be possible to send us the gerber file you use for this test so I can test it here with the same parameters? Best regards, Support
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1473933910
Reply with quote
#3
Hi again, We do not actually need a sample file, we was able to reproduce the problem with some of our own Gerber files. The problem has been fixed and an update will be available later today. We're sorry for the inconvenience. Best regards, Support
HJTrost
Registered:1473881721 Posts: 3
Posted 1473950981
Reply with quote
#4
Thank you for the quick feedback. When I download the updated version and install it right over the one I have, will that succeed and the trial period just continue? I'll try tomorrow or Monday. Cheers, Jochen Hans-Jochen Trost MicroFab Technologies, Inc. Plano, Texas, USA
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1473959931
· Edited
Reply with quote
#5
Hi, Version 3.15 which solves the Gerber to BMP issue is now available:http://www.softwarecompanions.com/scconverterupdate.html Just download and install on top of the existing installation. The evaluation will continue to run. The page may have been cached, refresh it with F5 if it stills show 3.13 as latest update. Best regards, Support