CamBam
News:
 
*
Welcome, Guest. Please login or register. April 20, 2014, 13:59:34 pm


Login with username, password and session length


Pages: 1 [2] 3
  Print  
Author Topic: Excellon (NC Drill) Import plugin  (Read 9394 times)
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #15 on: November 05, 2008, 08:38:20 am »

In the absence of any bug reports (is anyone other than Wrinklespot using this plugin in anger? If so, some feedback would be appreciated) I have attached the V1.0.0.0 release.
This is for CamBam Plus 094 or higher ONLY and no longer has an expiry date.


* Excellon.dll.zip (119.47 KB - downloaded 244 times.)
Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #16 on: September 26, 2011, 10:00:55 am »

Please see attached the updated Excellon plugin, which supports CanBam 0.9.8

* Excellon.zip (28.01 KB - downloaded 87 times.)
Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 1948


Coding Jedi


View Profile WWW
« Reply #17 on: September 26, 2011, 10:33:06 am »

Thanks Pete!

The plugin loaded OK for me.

This is probably operator error but...  Wink
I tried the attached file but get a NullReferenceException in Excellon.HandleReductions(...).

I *thought* this was an Excellon file, but apologies if it isn't.

One other observation, when the load fails, the file is kept locked so I can't edit the Excellon file
until CamBam is closed.  If you wrap your stream reader in a using(...) {} block, that should
avoid that one.

* opto_input.pcb.output_plated-drill.zip (0.52 KB - downloaded 95 times.)
Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #18 on: September 26, 2011, 10:52:47 am »

Andy
I'll take a look but the excellon.HandleReductions() call is to something called Gold Parser, over which I have no control as it is a third party library (and I don;t really understand the internals).

I'll take a look at handling the exception in an elegant manner.

I'll also take a look at the attached file and see if I can spot what is causing the problem. BTW - what application generated the file?

Regards
Pete
Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #19 on: September 26, 2011, 11:01:22 am »

If you select 'Trailing Zeros' in the Excellon plugin parameters dialog box when loading the file it works fine (for me anyway).
I think I know the problem - there is a line which has Inch,TZ - I'm not sure I handle the TZ keyword (trailing Zeros)
« Last Edit: September 26, 2011, 11:04:37 am by bigbigblue » Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 1948


Coding Jedi


View Profile WWW
« Reply #20 on: September 26, 2011, 13:58:58 pm »

Ah yes, if I delete the ,TZ bit in the header, it loads OK for me too.

I tried a couple of other files (which didn't contain ,TZ) and they are loading OK as well.

Great stuff!
Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #21 on: September 26, 2011, 14:02:18 pm »

I will see if I can update the parser module to take account of the ,TZ - I can't promise anything as the parser has been updated umpteen times since I originally made the plugin and I don't want to spend hours 'fixing' it.
 
I will however fix the undignified exit - and if there is an error, maybe put a dialog box up reminding the user to remove ,TZ or ,LZ from the 'Inch' line in the excellon file.

Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #22 on: September 27, 2011, 05:27:54 am »

Here is the updated version of the plugin which exits gracefully if there is a syntax error in the file being imported.

* Excellon.zip (28.13 KB - downloaded 152 times.)
Logged
kregan
Storm Trooper
***
Offline Offline

Posts: 129



View Profile WWW
« Reply #23 on: September 30, 2011, 00:50:57 am »

What is a (NC Drill)  ?  what does the plugin do?

Thank you.
Logged

bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #24 on: September 30, 2011, 00:53:47 am »

What is a (NC Drill)  ?  what does the plugin do?

Thank you.

Wikipedia is your friend : http://en.wikipedia.org/wiki/Excellon_file
Logged
kregan
Storm Trooper
***
Offline Offline

Posts: 129



View Profile WWW
« Reply #25 on: October 05, 2011, 02:50:43 am »

Always learning something new,  Thank you.
Logged

Jeff_Birt
Wookie
****
Online Online

Posts: 486


View Profile
« Reply #26 on: November 19, 2012, 20:05:14 pm »

I have used this plug-in several times. With the new 'N' release of CamBam it no longer works properly. If you turn off 'Create Drill Mops' it will import the points list but it 'sort of' gets duplicated four times. You have to copy one of the points lists to another CamBam instance to be able to use it.

If the author does not want to maintain the plug-in any longer would you mind sharing the source?
Logged
bigbigblue
Droid
**
Offline Offline

Posts: 82



View Profile WWW
« Reply #27 on: November 21, 2012, 01:48:51 am »

Here you go.......

* Excellon.zip (907.92 KB - downloaded 109 times.)
Logged
Jeff_Birt
Wookie
****
Online Online

Posts: 486


View Profile
« Reply #28 on: November 21, 2012, 15:08:53 pm »

Thanks! I'll play with it over the weekend and see if I can get it to build against the new version of CamBam.
Logged
Jeff_Birt
Wookie
****
Online Online

Posts: 486


View Profile
« Reply #29 on: November 22, 2012, 01:05:30 am »

I rebuilt the excellon plug-in to work with CamBam 0.98N. Basically just had to update the CamBam references. Now the drill mops are generated.

I used to use an Eagle plug-in to generate GCode for PCBs. One neat thing it did was let you set up a drill rack file, basically just a list of what drill sizes you have and what range of holes each one should be used for, for example:

Drill# Size      Range
1        0.040"  0.030"~0.050"

So Drill#1 will be used for any holes from 0.030" to 0.050" would that be something others would be interested in adding to the excellon plug-in for CamBam?

* Excellon.zip (30.04 KB - downloaded 145 times.)
Logged
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.195 seconds with 19 queries.

Copyright © 2008 HexRay Ltd. | Sitemap