Author Topic: File Merge 1.0  (Read 4721 times)

Offline Jeff_Birt

  • CNC Jedi
  • *****
  • Posts: 821
    • View Profile
File Merge 1.0
« on: September 24, 2015, 18:17:33 pm »
Andy's return sparked my desire to polish up the File Merge plug-in. The user interface has been simplified a new feature added and you are no longer prompted to save each file being merged.

This CamBam plug-in allows you to easily merge multiple CamBam supported file types onto a template or a new file. You can also import any CamBam supported file type into the current document. There are two modes of operation set by the radio button on the top left of the dialog: Import and Merge.

Import mode will import CamBam supported files types onto the current open file. If the current open file has not been saved you will be prompted to save it before proceeding. The ‘Library’ button will let you easily navigate to your ‘Library’ folder which is in the CamBam system folder (you must add this folder beforehand). The ‘Library’ is intended as a folder to save CamBam files (*.cb) which contain often used geometry, for example a cut out for a DB9 connector. That way you can easily add these commonly used items to your current project. The ‘Select Files’ button opens up your default folder, which is set via the ‘Config’ button (normally your default location for your CamBam projects) to make it easy to choose which files you want imported to the current project.

Merge mode is intended to merge multiple CamBam supported file types onto a template or onto a new file. A Template should be a *.cb file type. If no template is specified a new file is first created. You will be prompted to save before merging. If a template file is specified it is opened first and then the files from ‘Select Files’ are merged in one at a time.
If you are importing onto a template it will look at the file name or the file being merged, say “myPCB.Bottom.gbr” and extract the text between the last two periods, in this case the word would be “Bottom”. If you template has a layer named “Bottom” then the layers of the file being merged will be sent to the templates “Bottom” layer. This is intended to make it easier to import things like Gerber files into a template designed for PCB milling.

The ‘Merge’ button starts the merge process of course.

The “Config” button opens the configuration dialog. Currently you can set the default path (CamBam project folder for example) and the default mode the File Merge plug-in starts up in (Import or Merge).


« Last Edit: September 24, 2015, 18:19:11 pm by Jeff_Birt »

Offline Jeff_Birt

  • CNC Jedi
  • *****
  • Posts: 821
    • View Profile
Re: File Merge 1.0
« Reply #1 on: September 24, 2015, 18:21:44 pm »
Here is the source for 1.0 which is based on Andy's file merge script.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6892
    • View Profile
    • Cambam V1.0 French Doc
Re: File Merge 1.0
« Reply #2 on: September 24, 2015, 22:17:21 pm »
Hello jeff

Thanks for this update ;)

++
David