You need to use EasyEDA editor to create some projects before publishing
PCBLib format for PAD RECT (EasyEDA file source menu)
586 1
JAldo 4 years ago
I am trying to write a small lua script to transform a set of comma separated values into a list of PAD~RECT values to automatize the creation of footprints for components that have xy tables for pad positions, but i cannot find documentation about PAD~RECT format... can someone pls tell me how to do that ? everything is working, but the penultimate line (were it does write PAD~RECT line) is wrong and the application cant load the resulting file (after i graft it into the file source window). sourcecode : [https://pastebin.geany.org/NLqoX/](https://pastebin.geany.org/NLqoX/) really interesting line : ``` for index,value in ipairs(pl.padlist) do print('"PAD~RECT~'..value.padx..'~'..value.pady..'~0.09~0.09~11~~'..value.padid..'~1.8~~0~gge'.. value.padid..'~0~~Y~0~~~'..value.padx..','..value.pady..'",'); end; ``` cant figure out how to format PAD~RECT to automatically create a PAD from a list of pads taken from a datasheet (copy and paste). I need this because this is way more safe to guarantee that i've not mistyped something using an automatic tool than by manually typing. It might be usefull for someone else too. \-\-\-\-\- I edited it to put the sourcecode into pastebin to make forum easier to read.
Comments
UserSupport 4 years ago
Hi Our API files need to update [https://docs.easyeda.com/en/API/1-How-to-Use-API/index.html](https://docs.easyeda.com/en/API/1-How-to-Use-API/index.html) when we finish the version we will update the document. when you open the PCBlib and see the EasyEDA source you will find out the PAD react mean. ![图片.png](//image.easyeda.com/pullimage/HEQQ3y2ZycmzgSHWYf8DdVtTfi5KRp4WEWhjW264.png) ![图片.png](//image.easyeda.com/pullimage/xn98pVIrAouXm8515CIyBNAhXj6vAu3ES1KBboAg.png)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice