element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Chat (English) Cadsoft Eagle with Python Scripting
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 54 replies
  • Subscribers 183 subscribers
  • Views 9799 views
  • Users 0 members are here
Related

Cadsoft Eagle with Python Scripting

Former Member
Former Member over 12 years ago

Hi,

 

I've only started using Eagle a few weeks ago, and as much as I like it, I have found what I consider some pretty fundamental features just missing. As the built in scripting language is extremely restrictive (when compared to a 'real' language like python, lua or ruby), I made an attempt to get python running with Eagle.

 

http://www.youtube.com/watch?v=_w7CECR7Dv8

 

The above is a video of a project I have been working on for the pas 3-4 days, which basically involves exposing the Cadsoft ULP and SCR to python (albeit in not the fastest way). But it does allow me to now use 90% of the ULP and all of the SCR directly from python, including the Object Heirarchies, board.grid... schematic... which have all be exposed in a pythonic way.

 

as an example, to get all the Instances in the schematic..

 

instances = Eaglepy.ULSchematic().instances()

 

or loop,

 

for instance in Eaglepy.ULSchematic().instances():

     print instance.name()

 

etc..

 

The tools in the video were very quick to knock out.. the slowest bit was figuring out the papers for approximating cubic/quadratic bezier curves with arcs, for the DXF Importer. These should be the first of many tools to come, next on the list is a group manager so I can save my selectsion.

 

Hopefully when I have had time to test this a bit more I will release the code to the community, along with any tools I have built. for others who might want this funtionality. (something that should be out of the box with proper bindings to a proper language imo...)

 

Cheers

 

Rob.

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 11 years ago

    Robin or Doug,

     

    Would either of you mind sending me the code as well or pointing me to a repo where it may be?

     

    Thank you

    Jesse

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AnalogNotes
    AnalogNotes over 11 years ago in reply to Former Member

    I set up a Bitbucket repo for it.  (Private repositories on Bitbucket are free, Github charges for them.)  Let me ask Rob what kind of copyright/license he wants to use, and I'll let you know how to get it...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to AnalogNotes

    Thank you very much

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to AnalogNotes

    I would love to get access to this as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dukepro
    dukepro over 11 years ago in reply to AnalogNotes

    Rob, Doug,

     

    Count me in as well, please.

     

        - Chuck

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 11 years ago in reply to AnalogNotes

    And me too please

     

    Warren

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to AnalogNotes

    If you already have a bitbucket setup, by all means share it on this thread. As far as I am concerned The MIT License (MIT) | Open Source Initiative license is fine.

     

    Rob.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AnalogNotes
    AnalogNotes over 11 years ago in reply to Former Member

    Sorry for the delay, I was in San Diego, California, watching my son compete in the Triton Invitational track meet.

     

    When I get home I'll make the repository public and then reply to this thread with the URL...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 11 years ago in reply to AnalogNotes

    Hi Doug

     

    Have you made it home yet or are you still out with your son celebrating?

     

    Regards

    Warren

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • autodeskguest
    autodeskguest over 11 years ago in reply to AnalogNotes

    Hi Doug

     

    Have you made it home yet or are you still out with your son celebrating?

     

    Regards

    Warren

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • AnalogNotes
    AnalogNotes over 11 years ago in reply to autodeskguest

    I'll be back in the office tomorrow, Wednesday the 7th.

     

    My son threw far enough to make the nationals in discus, but didn't throw the hammer far enough to qualify.  I'm still a proud dad though!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AnalogNotes
    AnalogNotes over 11 years ago in reply to AnalogNotes

    P.S. Anybody program in the Scala language?  I've seen some decent XML file processing done with it.  I'm going to try parsing and manipulating EAGLE files with it...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube