You need to use EasyEDA editor to create some projects before publishing
Can i create leds by code instead of searching in Library and adding to schematic?
1605 0
Yariv Hashai 2 years ago
is there an option to add by code electronic components instead of searching them manually? I was trying to use the createShape API from here - [https://docs.easyeda.com/en/API/3-API-List/index.html#Create-Shape](https://docs.easyeda.com/en/API/3-API-List/index.html#Create-Shape)<br> <br> for exsample - ``` api('createShape', {shapeType:'schlib', shortUrl:'nxlVIGgQO', from:'system', title:'556_DIL14', x:400, y:300}); api('createShape', {shapeType:'FOOTPRINT', shortUrl:'RrkewO60i', from:'system', title:'ARDUINO_PRO_MINI', x:400, y:300}); ``` (which are not working) But i was unable to understand where i get the short url from and how i can determine the other parameters there - today i'm just doing it manually - but for large project, i would like to be able to do it via code if possible any ideas?
Comments
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