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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 Support (English) Is it possible to use SQL queries in a ULP/SCRIPT somehow?
  • 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
  • State Not Answered
  • Replies 1 reply
  • Subscribers 178 subscribers
  • Views 452 views
  • Users 0 members are here
  • sql
  • eagle
  • ulp
  • mysql
Related

Is it possible to use SQL queries in a ULP/SCRIPT somehow?

zainka
zainka over 11 years ago

I am for the moment working at an "electronics manufacturing company" developing test-systems, and for commonly used electronics parts (resistors, capacitors, IC's etc) we have these stored on-site. Therefore, when I design a new PCB the chance for us having the parts used in-house is significant. However, I have to manually check for each part used in my design to see if it is already available in-house. For this I use an web-based tool which is nothing more than a SQL frontend.

 

Question are therefor if it is possible to connect to an SQL database using ULP. I could then create an ULP which would build up an partlist(BOM) which has been checked towards our local storage inventory.

 

Breg

Vidar

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

    Vidar, its possible to accomplish the automation of the lookup of components in an external system using ULP. Ive done a similar project where I have integrated a ULP with an external database/application. The ULP I wrote extracts necessary data from the Eagle board file and then communicates with a web application via REST calls. The web application uses the data to do lookups in its internal component library, builds assembly files, generates the 3D models, and then responds back to the ULP so it can display the 3D models. The ULP is called IDF-to-3D and is posted on the ULP download page under eagle_to_3d_4_0.ulp. This ULP will communicate with a web application owned by Simplified Solutions Inc which specializes in 3D model generation from IDF file types. They have a very large component database of 3D models and also a deep understanding of PCB business processes.

     

    To accomplish what you are looking for you would need a ULP that would be able to extract the component data you need from the board file and then talk with the database via an interface. If the database already has a web front end then I would recommend you have a simple web REST interface setup so that the ULP can use a HTTP_POST/GET call to talk to the database and get the results back.

     

    Another potential approach would be to build a tool to automate this process outside of Eagle. The Eagle board files are an XML format and can be read directly without using Eagle. You could write a batch program that processes each Eagle file and makes the necessary connection to your database and then writes out the results. If you have a lot of Eagle board files this will be the most efficient as you can run this program in a batch mode and have it run on its own and process large sets of files. It can also then write out the results to a consolidated report.

     

    The final comment I want to make is that what I have seen is most companies dont have component naming standards which tie directly to component names. As a result when we try to link components in the Eagle boards to a component database we dont see good one-to-one matching on names. For the application I wrote previously it included rules based matching to increase the hit rate when looking up components in the database. You may find that you need similar capabilities.

     

    If you want more info on how to implement something like this or you are interested in working with me on such a project let me know. Im glad to share what I have done and I am also open to contract work to help you accomplish the automation you are looking for.

     

    -Marc

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

    Vidar, its possible to accomplish the automation of the lookup of components in an external system using ULP. Ive done a similar project where I have integrated a ULP with an external database/application. The ULP I wrote extracts necessary data from the Eagle board file and then communicates with a web application via REST calls. The web application uses the data to do lookups in its internal component library, builds assembly files, generates the 3D models, and then responds back to the ULP so it can display the 3D models. The ULP is called IDF-to-3D and is posted on the ULP download page under eagle_to_3d_4_0.ulp. This ULP will communicate with a web application owned by Simplified Solutions Inc which specializes in 3D model generation from IDF file types. They have a very large component database of 3D models and also a deep understanding of PCB business processes.

     

    To accomplish what you are looking for you would need a ULP that would be able to extract the component data you need from the board file and then talk with the database via an interface. If the database already has a web front end then I would recommend you have a simple web REST interface setup so that the ULP can use a HTTP_POST/GET call to talk to the database and get the results back.

     

    Another potential approach would be to build a tool to automate this process outside of Eagle. The Eagle board files are an XML format and can be read directly without using Eagle. You could write a batch program that processes each Eagle file and makes the necessary connection to your database and then writes out the results. If you have a lot of Eagle board files this will be the most efficient as you can run this program in a batch mode and have it run on its own and process large sets of files. It can also then write out the results to a consolidated report.

     

    The final comment I want to make is that what I have seen is most companies dont have component naming standards which tie directly to component names. As a result when we try to link components in the Eagle boards to a component database we dont see good one-to-one matching on names. For the application I wrote previously it included rules based matching to increase the hit rate when looking up components in the database. You may find that you need similar capabilities.

     

    If you want more info on how to implement something like this or you are interested in working with me on such a project let me know. Im glad to share what I have done and I am also open to contract work to help you accomplish the automation you are looking for.

     

    -Marc

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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