hey Gil-
thanks for the reply/post..
Im not sure what part(s) I am NOT doing correctly then?
let me re-cap to see if you can spot something I didnt do correctly? or am missing?
OS: Windows XP
* I have the same gerbertographtec directory in root on my C: drive..
* I did CD into the C: drive.. and use the command line from there (root of C: where I called the command line.. as shown above in the command lines I posted that I used.. are they NOT correct?
* Printer 'was' seen as Cameo in printer profiles.. (shared it out as 'Cameo' as well)
I have installed:
Python 2.7.5
pstoedit
GerbV
Ghostscript
(GraphicMagik as well)
Edits to Gerbertographtec:
* add .py file extension to the gerber2graphtec file
* Edit gerber2graphtec.py lines:
#original lines:
#os.system("gerbv --export=pdf --output=%s --border=0 %s" % (temp_pdf,input_filename))
#os.system("pstoedit -f pic %s %s 2>/dev/null" % (temp_pdf,temp_pic))
#new lines:
os.system(""C:/Program Files/gerbv-2.6.0/bin/gerbv" --export=pdf --output=%s --border=0 %s" % (temp_pdf,input_filename))
os.system(""C:/Program Files/pstoedit/pstoedit" -q -f pic %s %s" % (temp_pdf,temp_pic))
**Q1: Is the above correct? I edited out the (x86) portion..
pstoedit changes:
Everytime I would run the command lines given above.. I would get error about the image_magik_.dll file.. and things would crash.
Problem during opening of pstoedit driver plugin: C:Program Filespstoeditdrvm
agick.dll. This is no problem as long the driver in this library is not needed.
Possibly you need to install further libraries and/or extend the LD_LIBRARY_PATH
(*nix) or PATH (Windows) environment variables.
Could not open file _tmp_gerber.pdf for input
Traceback (most recent call last):
File "C:gerber2graphtec-mastergerber2graphtec.py", line 105, in <module>
strokes = pic.read_pic(temp_pic)
File "C:gerber2graphtec-masterpic.py", line 5, in read_pic
f = open(filename,"r")
IOError: [Errno 2] No such file or directory: '_tmp_gerber.pic'
If I take the Image_Magik _.dll file out of the cirectory.. it does NOT give this error/message
**Q2: Do I need to take the .dll out of the directory.. or not?
*GerbV seems to be the problem?
NO MATTER WHAT I TRY (adding/removing files using different/alt command lines..etc)..
GerbV also 'crashes'.. I get huge pop-up that Gerbv has crashed.. and do I want to send error report..etc..
then in the CMD prompt/window I get this:
At this point .. I dont see any differences between our set-ups.. besides that fact you are using a batch script to execute things.. (which I am going to try next)
*Q3: Do you have your .spt file in the gerber-files-to-cut directory? or the gerber-files-to-cut/gerber2graphtec directory?
I did change out the > to slashes in the command line (because with them it threw errors).. so I will go back and leave them in and try again.. (or just try your batch script)
Here is my edited batch file based off yours:
@echo off
rem This is for printer named "Cameo" which must be named and shared in control panel.
rem This is for computer named "hacker"
echo.
echo This script will send gerber file to Cameo for cutting solder stencil.
echo Generates intermediate files .pdf, .pic, and .graphtec.txt
echo.
echo Set your Cameo blade to 1 and turn cutter on.
echo Load mylar sheet (landscape) at upper-left corner of mat.
echo.
set /p filename= Enter filename of gerber (eg: test.spt or board.gbr):
gerber2graphtecgerber2graphtec.py %filename% > %filename%.graphtec.txt
copy /B %filename%.graphtec.txt \hackerCameo
I have now copied your file structure..
C:gerber-files-to-cut
&
C:gerber-files-to-cutgerber2graphtec
(dropped the -master portion of the name... and this is where all the .py stuff resides as well)
Update 1: tried it once..
got a 'quick' (I think) message that said file not found or something? closed before I could be sure?
I then moved the .bat file you suggested I create to the: C:gerber-files-to-cut directory.. and ran it.. (success, as in it prompted for name and did output some files)
at least as far as it 'creating' a file to be used..
I continued to press "OK" to cut.. loaded mat/media.. scanned it in/out for awhile (like it was registering) make some noises like it was cutting.. but quit/stopped quickly...(not more than a minute or two)..
and say UNLOAD (like it was done).. I check the mylar on the mat.. no cuts at all? I tried to open the _tmp_.pdf file.. (0kb..and wont open ..says error or corrupt)
not sure what I can use to view a .pic file (PS says not valid)
the graphtec.txt file actually DOES have some data in it:
TTFGFW100FC18FY0FN1FE0TB71FAFU5088,5776FM1TB50,1FO5088&100,100,100, ,0,Z6096,5588,L0,FX8,0!2M2286.000,508.000D3302.000,508.000D3302.000,1524.000D2286.000,1524.000D2286.000,508.000FX30,0!2M2286.000,508.000D3302.000,508.000D3302.000,1524.000D2286.000,1524.000D2286.000,508.000&1,1,1,TB50,0FO0H,
Im doing better now with the batch script.. (no more errors on GerbV)
am I missing something else then?
thanks!!
update 2:
I put BACK the Image_Magik_.dll file into the _root of the pstoedit directory.. (I had previously removed it due to an error)..
re-ran the .bat file again.. entered in name.. hit enter..
BAM!@.. this time I actually cut 'files' with data in them..
.pdf opens and looks like the gerber file
the Cameo 'is' cutting something.. (not done.. so no results yet)
I noticed on the .pdf preview.. the board OUTLINE (dimensions layer) is also there in red... I read this will be cut out?
Do we need to remove the dimensions layer before exporting gerbers then to void the stencil outline from being cut out of the mylar?
Also.. lastly..
I still get this error:
The procedure entry point ?construct@?$allocator@VVPath@Magik@@@std@@QAEXPAVVPath@Magik@@$$QAV34@@Z could not be located in the dynamic CORE_RL_Magik++.dll
* should I copy the .dll's from the Image_Magik installation directory.. (which I did/installed on my own not part as anyone directions during searching for a solution last night) to the pstoedit directory or something?
if it works.. I suppose I can 'live' with the error message.. just curious as to why Im getting it and how to solve it. :)
thanks for all the help so far.. the bat file seems to be the key for me!.
*update 3:
still printing (cutting).. been a long time now 1+ hours Im guessing so far.....
I lifted the cover of the Cameo to ensure it was actually cutting...
it is... (so Im happy I hope it turns out as great as everyone elses!)..
Still have the last ERROR though?
Anyways... what I wanted to ask last was:
my file seems to be cutting at the TOP/CENTER position.. and NOT in the upper LEFT CORNER.. (more 'left' of the top, dead center to be accurate)
Which got me thinking..
how can you place where the cut file is going to be positioned on the Cameo?
if I wanted to put in a 8.5 x 11" piece of mylar (or even lets say a 4" x 4" piece)...
how would I 'center' that? or at east have some control over the placement as to not waste media? (mylar/kapton/transparencies..etc..etc)
thanks!