Skip to content

issus/EagleSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EagleSharp: .NET Library for Parsing and Manipulating EAGLE PCB Files

NuGet License: MIT

EagleSharp is a easy-to-use .NET library for parsing and anipulating EAGLE PCB files. It allows you to load and read data from EAGLE PCB files and make changes to them programmatically. With EagleSharp, you can easily automate tasks such as updating component symbols and library definitions, or extracting data for use in other tools.

Features

  • Load and parse EAGLE PCB files
  • Access and modify data in EAGLE files such as component symbols, library definitions, and schematics
  • Serialize modified EAGLE files back to disk

Getting Started

You can install EagleSharp through NuGet by searching for OriginalCircuit.EagleSharp in the NuGet Package Manager or by using the following command in the Package Manager Console:

Install-Package OriginalCircuit.EagleSharp

Example: Reading Pins from a Symbol Definition

Here is an example of how to use EagleSharp to load a library file and read the pins from each symbol:

using OriginalCircuit.EagleSharp;

...

var xs = new XmlSerializer(typeof(Eagle),"");
Eagle lbr = (Eagle)xs.Deserialize(stream);

if (lbr.Drawing.Library == null)
    return;

foreach (var deviceSet in lbr.Drawing.Library.DeviceSets.DeviceSet)
{
    string name = deviceSet.Name;
    foreach (var device in deviceSet.Devices.Device)
    {
        var pins = device.Connects.Connect.Select(o => new PinDefinition(o.Pad, o.Pin));
        // Add the pins to a symbol definition object here
        // ...
    }
}

License

EagleSharp is released under the MIT license. See the LICENSE file for details.

About

.NET Library for reading/writing EAGLE PCB files.

Resources

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages